I would like to find out WHEN pm-utils was installed.
I looked thru PPM but could not find install date.
I would like to find out WHEN pm-utils was installed.
I looked thru PPM but could not find install date.
Ubuntu Mate 18.04 Bionic and Ubuntu Mate 20.04
Mate Desktop
There is no guarantee this will return any results. It goes through the dpkg logs grepping for pm-utils, then sorts them in chronological order. Results are displayed using less. Problem is, dpkg logs are rotated out after 14 iterations (including the gzipped ones). So, if your install was before the oldest log date, it won't show you a result.Code:_P=pm-utils && (cat /var/log/dpkg.log{,.1};zcat /var/log/dpkg.log.*.gz) | egrep --text "^[^ ]* [^ ]* (configure|install|remove|status [^ ]*|trigproc|upgrade) $_P[: ]" | sort --reverse | less
A system upgrade is a heart, lung and brain transplant. !!BACKUP FIRST!!
Linux is Not Windows | A Great CLI Guide | Resources for Newcomers
The Best 'buntu Flavour | Remapping Keys | Sandboxing Apps with LXD
By the way, the dpkg-related logrotate file is /etc/logrotate.d/dpkg. Mine hasCode:/var/log/dpkg.log { monthly rotate 60 compress delaycompress missingok notifempty create 644 root root } /var/log/alternatives.log { monthly rotate 60 compress delaycompress missingok notifempty create 644 root root }
thanks. It found that package.
Ubuntu Mate 18.04 Bionic and Ubuntu Mate 20.04
Mate Desktop
will list all the dates, from newest to oldest, on which package_name was installed.Code:zgrep "status installed package_name" /var/log/dpkg.log*
As DuckHook pointed out, the results depend on how many logs are present.
Thanks guys for the info.
I had rotate 12 in my dpkg.
Ubuntu Mate 18.04 Bionic and Ubuntu Mate 20.04
Mate Desktop
Bookmarks