How to check the changelog of a package on Linux

Question: When I install or upgrade a package on Linux, I want to find out what changes (e.g., new features or bug fixes) have been made in the package before or after installing it. How can I view the changelog of a (Deb/RPM) package on [Debian, Ubuntu, CentOS, Fedora]? When a program or a library […]
Continue reading…

 

How to compile virt-manager on Debian or Ubuntu

Question: I want to build and install the latest virt-manager from its source on my Linux desktop. What is the procedure for compiling virt-manager on [Debian, Ubuntu]? virt-manager is a GUI-based virtual machine manager which allows you to create and manage (local or remote) virtual machines and containers via libvirt APIs. It supports multiple hypervisors […]
Continue reading…

 

How to boot into command line on Ubuntu or Debian

Question: I am running Ubuntu desktop, but I want to boot straight into text-mode console temporarily. What is a convenient way to disable desktop GUI and boot into a terminal? Linux desktop comes with a display manager (e.g., GDM, KDM, LightDM), which lets the desktop machine automatically boot into a GUI-based login environment. However, what […]
Continue reading…

 

How to download and install ixgbe driver on Ubuntu or Debian

Question: I want to download and install the latest ixgbe driver for my Intel 10 Gigabit Ethernet card. How can I install ixgbe driver on Ubuntu (or Debian)? Intel’s PCI Express 10 Gigabit (10G) network inerface cards (e.g., 82598, 82599, x540) are supported by ixgbe driver. The stock kernel of the modern Linux distributions already […]
Continue reading…

 

How to install non-free packages on Debian

Question: I need to install some proprietary device driver on Debian, which is part of a non-free package. However, I cannot find and install the package in my Debian box. How can I install non-free packages on Debian? The Debian project is distributed as a collection of packages, 48,000 of them, as of Debian Wheezy. […]
Continue reading…

 

How to find Ubuntu version and codename in a shell script

Question: I am writing a shell script where I need to obtain the release version and release name (or codename) of Ubuntu system. How can I get Ubuntu version/release name inside a shell script? There are many cases where you need to run some batch processing jobs which can vary across different Ubuntu releases (e.g., […]
Continue reading…

 

How to disable APT cache in Debian or Ubuntu

Question: I do not want to keep downloaded .deb package files after installing them with apt-get or aptitude. How can I disable APT cache to save disk space on my Linux? When you install a package with apt-get or aptitude on a Debian-based system, the downloaded package is, by default, kept in the APT cache […]
Continue reading…

 

How to remove MySQL on Ubuntu or Debian

Question: I have MySQL installed by apt-get on Ubuntu. What is a proper way to uninstall and remove MySQL on Ubuntu (or Debian, Linux Mint)? First of all, stop MySQL server if it’s running. $ sudo service mysql stop If you want to remove MySQL completely, use the following commands. This will uninstall MySQL server/client […]
Continue reading…