I wanted to update my Ubuntu 14.04 server and I saw this output. I needed to remove these unwanted packages on my system. [email protected]:~$ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages were automatically installed and are no longer required: libdigest-hmac-perl libdrm-intel1 libdrm-nouveau2 …

This command will update a single package upon request. This would be very useful if you want to update only a certain package. dpkg -s 2>/dev/null | grep -q Status.*installed && sudo apt-get install I found this tip here: http://askubuntu.com/questions/44122/how-to-upgrade-a-single-package-using-apt-get. This would be very useful to someone using Ubuntu or Debian. Here is an example. …

The cat /var/log/apt/term.log command will allow you to retrieve information about a package installation; you may then review the installation process and see if anything went wrong during the installation process. In the example below, I am reviewing an installation of Midnight Commander. [email protected]:~$ cat /var/log/apt/term.log | grep mc Selecting previously unselected package libxdmcp6:amd64. Preparing …

This is how to automatically remove unneeded packages on your Linux Mint system. [email protected]:~$ sudo apt-get autoremove [sudo] password for jason: Reading package lists… Done Building dependency tree Reading state information… Done The following packages will be REMOVED: libglib2.0-0:i386 libgstreamer-plugins-base0.10-0 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0 libgstreamer0.10-0:i386 liborc-0.4-0:i386 libpgm-5.1-0 libpoppler57 libpth20 libsndio6.0 libzmq3 qtdeclarative5-qtfeedback-plugin qtdeclarative5-ubuntu-web-plugin 0 to upgrade, 0 …

Installing the kernel headers for Kali Linux allows the installation of Virtualbox Guest Additions and other software that relies upon the kernel headers, but the /etc/apt/sources.lst is not filled out by default. Paste this code into the /etc/apt/sources.lst at the bottom of the file. deb http://http.kali.org/ /kali main contrib non-free deb http://http.kali.org/ /wheezy main contrib …

To install a Debian *.deb packages that you have downloaded, use this command. [email protected] ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.deb This will install the Debian package. [email protected] ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.deb [sudo] password for john: Selecting previously unselected package rxvt. (Reading database … 281734 files and directories currently installed.) Unpacking rxvt (from rxvt_2.6.4-14_i386.deb) …

The Gnome Shell 3.6 builds are available for Ubuntu 12.10; but if you want to install the unstable builds of Gnome Shell 3.7 to test it out on your computer, then these commands will install it. sudo add-apt-repository ppa:gnome3-team/gnome3 #The GNOME3 team PPA sudo add-apt-repository ppa:gnome3-team/gnome3-staging #The GNOME3 staging PPA Once these commands have completed; …

Apt errors. To deal with the message you get sometimes telling you that some packages have been kept back when you type sudo apt-get upgrade, just type sudo apt-get dist-upgrade. This will pull down the rest of the packages and fully upgrade your system. Uncompressing rar files. This is very easy with the unrar command. …