domingo, 4 de diciembre de 2016

What to do after installing a new Ubuntu system

To be able to keep a list of all packages that we install next, edit /etc/logrotate.d/{apt,dpkg}


List of packages that have been installed in Ubuntu


From http://unix.stackexchange.com/questions/288024/how-can-i-get-a-list-of-packages-that-i-have-installed-using-apt-get

This will give you a list of packages that have been installed, in the order that they were installed:

zgrep -h ' install ' /var/log/dpkg.log* | sort | awk '{print $4}'

However, only the last 12 months of/var/log/dpkg.log* files are kept by default. To change this, edit /etc/logrotate.d/{apt,dpkg}. For example, change rotate 12 to rotate 1200 to keep the last 1200 months (100 years) worth - effectively forever, never delete the old logs.

Use dpkg to list all packages installed on a system: dpkg --get-selections



balllalalala