How to set up Apt caching server on Ubuntu or Debian

If you often create guest VMs or containers on your Linux computer, you will go through package installation many times across different VMs/containers. In that case, your time may be better spent on something more productive than just waiting to finish installing packages. While server provisioning tools like Puppet, Chef or Ansible can automate the […]
Continue reading…

 

How to speed up slow apt-get install on Debian or Ubuntu

If you feel that package installation by apt-get or aptitude is often too slow on your Debian or Ubuntu system, there are several ways to improve the situation. Have you considered switching default mirror sites being used? Have you checked the upstream bandwidth of your Internet connection to see if that is the bottleneck? Nothing […]
Continue reading…

 

How to check package dependencies on Ubuntu or Debian

A typical .deb package relies on other packages to install and operate properly. With package managers such as apt-get and aptitude, you can resolve package dependencies, and have all prerequisites installed automatically. Suppose for whatever reason, you want to manually resolve package dependencies of a particular package, in which case you need to identify all […]
Continue reading…

 

How to fix apt-get update error on Ubuntu

Ubuntu Linux system maintains a local database (so-called apt package index) of packages that are available from the repositories defined in /etc/apt/sources.list, or in /etc/apt/sources.list.d/. The apt package index can often become outdated as the packages contained in the repositories change, or new repositories are added to the system. In order to update the local […]
Continue reading…

 

How to find which package a binary file belongs to on Debian/Ubuntu

If you are managing software on Debian/Ubuntu using apt-get package management, there may be cases where you want to remove or upgrade a software package that contains an existing binary file on your system. So given an existing binary file (e.g., /usr/lib/postgresql/8.4/bin/postgres), how can you find out which package provides the binary file? This is […]
Continue reading…

 

How to install software packages in non-interactive batch mode on Debian/Ubuntu

If you are a system admin, at some point you may have wondered how to install a list of software packages in one shot. Manually installing software programs on multiple Linux systems would be a tedious job, and your time can be better spent elsewhere. If you seek to install multiple packages in non-interactive batch […]
Continue reading…