Category: ubuntu

ubuntu – migrate packages from one server as a source to target server

The initial-status.gz and dpkg-query method from the most accurate and concise list for my needs. comm -13 \ <(gzip -dc /var/log/installer/initial-status.gz | sed -n ‘s/^Package: //p’ | sort) \ <(comm -23 \ <(dpkg-query -W -f=’${Package}\n’ | sed 1d | sort) \ <(apt-mark showauto | sort) \ )   Check_diff   for i in `cat diff.txt`;do echo $i […]

UBUNTU- automatic package install – check if system needs reboot

Automatic packages – how to know if system needs to restart: Update manager suggests to restart when kernels are upgraded or some other system packages with services that are marked for reboot when upgraded. In this case /var/run/reboot-required is set by a package installation script.

List Ubuntu Packages

Command to list recently installed packages that were installed via any method (apt-get etc) cat /var/log/dpkg.log | grep “\ install\ “


Best Buy Co, Inc.
Best Buy Co, Inc.
Best Buy Co, Inc.