×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

sort packages by install date

sort packages by install date

sort packages by install date

(OP)
Is there a built-in command in Solaris that will list all installed packages sorted by the date they were installed?  You can do this easily on RPM-based Linux systems by using the code below.  I'm looking for an equivalent command in Solaris, if one exists.

CODE

# rpm -qa --last | head
kernel-PAE-2.6.18-194.26.1.el5                Thu 20 Jan 2011 11:53:17 PM EST
kernel-2.6.18-194.26.1.el5                    Thu 20 Jan 2011 11:53:01 PM EST
nscd-2.5-49.el5_5.7                           Sat 11 Dec 2010 06:51:33 PM EST
freetype-2.2.1-28.el5_5                       Sat 11 Dec 2010 06:51:33 PM EST
bzip2-1.0.3-6.el5_5                           Sat 11 Dec 2010 06:51:33 PM EST
pam-0.99.6.2-6.el5_5.2                        Sat 11 Dec 2010 06:51:31 PM EST
glibc-2.5-49.el5_5.7                          Sat 11 Dec 2010 06:51:26 PM EST
glibc-common-2.5-49.el5_5.7                   Sat 11 Dec 2010 06:51:16 PM EST
cups-1.3.7-18.el5_5.8                         Thu 02 Dec 2010 06:38:27 PM EST
poppler-utils-0.5.4-4.4.el5_4.11              Thu 02 Dec 2010 06:38:24 PM EST

RE: sort packages by install date

The command to dump all installed package info is
pkginfo -l
but I don't know any way to make it sort or give only the install date, other than using a lot of commands to parse the output.

This should do what you want though:

ls -lt /var/sadm/pkg

/var/sadm contains data form all package and patch installations. Don't modify or delete anything under /var/sadm, but the directory dates on each package there should reflect the install date.

RE: sort packages by install date

(OP)
The simple 'ls -lt /var/sadm/pkg' you posted should work fine.  Thanks, I didn't think of that!   

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close