You are not logged in.

#1 2008-04-30 11:35:43

samhain
Member
Registered: 2007-07-19
Posts: 39

How do I get a list of the most recent upgraded packages?

Hi there,

I want to get a list of the last upgrades using pacman.
I´ve been looking for a way to do it in the man page, but either I´m blind or there is not such an option.

I know that I can just do:

ls --sort time /var/cache/pacman/pkg/|head

But what if I clean the cache regularly?

Does the pacman database store the upgrade or installation date for each package? If so, how can I access this data?

Cheers,


Edit: I know that "pacman -Qi" gives me the date of installation of individual packages, but what I want is to be able to sort the list of all installed packages by date.

Last edited by samhain (2008-04-30 11:41:19)


Arch is to Linux as Jeet Kune Do is to martial arts.

Offline

#2 2008-04-30 12:15:58

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: How do I get a list of the most recent upgraded packages?

/var/log/pacman is the file you want


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2008-04-30 12:26:39

samhain
Member
Registered: 2007-07-19
Posts: 39

Re: How do I get a list of the most recent upgraded packages?

dolby wrote:

/var/log/pacman is the file you want

Thanks.

cat /var/log/pacman.log | grep "] upgraded" | tail

Gives me what I need smile

I would prefer if pacman had some option for sorting the queries, but for now, this will do fine.


Arch is to Linux as Jeet Kune Do is to martial arts.

Offline

#4 2008-05-01 09:50:16

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: How do I get a list of the most recent upgraded packages?

samhain wrote:

I would prefer if pacman had some option for sorting the queries, but for now, this will do fine.

I find that way perfectly fine, and not only for now.
But you can customize pacman for your own needs if you like, it's open smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#5 2008-05-01 15:15:12

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 344
Website

Re: How do I get a list of the most recent upgraded packages?

You could make a pacman wrapper that could do that, i for one use tupac for faster searching, tupac uses yaourt which i use for building packages from AUR ( aka the extra repo ) and yaourt uses pacman. if you have the idea what the query sorter would be ( and its not to complex ) you could modify yaourt to do that.


If it ain't broke, broke it then fix it.

Offline

Board footer

Powered by FluxBB