You are not logged in.

#1 2019-01-09 23:30:34

prosvetlyonniy
Banned
Registered: 2019-01-06
Posts: 25

How to find out which packages were installed recently in descending

How to find out which packages were installed recently in descending order?
Need a way without wrapping pacman and creating a sh script.

Offline

#2 2019-01-09 23:42:47

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: How to find out which packages were installed recently in descending

The information you want is in /var/log/pacman.log

For example, on the desktop where I'm currently working:

$ grep installed /var/log/pacman.log | tail
[2018-12-12 13:38] [ALPM] installed asciiquarium (1.1-5)
[2018-12-17 11:17] [ALPM] installed tmux-xpanes (3.1.0-1)
[2018-12-17 11:18] [ALPM] installed tmux-xpanes (3.1.0-1)
[2019-01-02 10:02] [ALPM] installed pacman-contrib (1.1.0-1)
[2019-01-03 05:49] [ALPM] installed libxdg-basedir (1.2.0-4)
[2019-01-03 05:49] [ALPM] installed dunst (1.3.2-1)
[2019-01-03 15:34] [ALPM] installed lsof (4.91-1)
[2019-01-07 10:15] [ALPM] reinstalled dunst (1.3.2-2)
[2019-01-07 10:15] [ALPM] reinstalled libnotify (0.7.7-2)
[2019-01-09 17:41] [ALPM] reinstalled dell-mgmtstat (8.5-1)

Presumably by "descending order" you mean descending by date, not descending lexically or descending by version number, so the log is already in the order you want.

Offline

#3 2019-01-09 23:48:14

prosvetlyonniy
Banned
Registered: 2019-01-06
Posts: 25

Re: How to find out which packages were installed recently in descending

/dev/zero wrote:

The information you want is in /var/log/pacman.log

For example, on the desktop where I'm currently working:

$ grep installed /var/log/pacman.log | tail
[2018-12-12 13:38] [ALPM] installed asciiquarium (1.1-5)
[2018-12-17 11:17] [ALPM] installed tmux-xpanes (3.1.0-1)
[2018-12-17 11:18] [ALPM] installed tmux-xpanes (3.1.0-1)
[2019-01-02 10:02] [ALPM] installed pacman-contrib (1.1.0-1)
[2019-01-03 05:49] [ALPM] installed libxdg-basedir (1.2.0-4)
[2019-01-03 05:49] [ALPM] installed dunst (1.3.2-1)
[2019-01-03 15:34] [ALPM] installed lsof (4.91-1)
[2019-01-07 10:15] [ALPM] reinstalled dunst (1.3.2-2)
[2019-01-07 10:15] [ALPM] reinstalled libnotify (0.7.7-2)
[2019-01-09 17:41] [ALPM] reinstalled dell-mgmtstat (8.5-1)

Presumably by "descending order" you mean descending by date, not descending lexically or descending by version number, so the log is already in the order you want.

Okay, problem solved

Offline

#4 2019-01-09 23:54:43

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How to find out which packages were installed recently in descending

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB