Linux

dpkg command cheatsheet

Syntax Description Example dpkg -i {.deb package} Install the package dpkg -i zip_2.31-3_i386.deb dpkg -i {.deb package} Upgrade package if it is installed else install a fresh copy of package dpkg -i zip_2.31-3_i386.deb dpkg -R {Directory-name} Install all packages recursively from directory dpkg -R /tmp/downloads dpkg -r {package} Remove/Delete an installed package except configuration files […]

Read More
Linux

Advanced APT user tricks

Debian/Ubuntu apt-get tricks. Basics Install software apt-get install foobar Search software apt-cache search foobar You can query files to see which packages own them, or query packages to see which files own them. Installing apt-file apt-get install apt-file Build apt-get file information cache apt-file update Query through the packages to determine which package contains the […]

Read More
Linux

Finding which package contains a file in Debian

There are times when you’re looking for a particular library, or file, which you know is available to Debian/Ubuntu but you cannot find the package which contains it. This is the kind of job that the Debian packages site helped with in the past, but given its current unavailability we’ll look at another approach.

Read More
Linux

Howto duplicate a Debian setup

This post describes howto reinstall or duplicate a Debian or Debian based distribution like Ubuntu. First we need to extract the installed packages on the source server and save them in a file debian:~# dpkg –get-selections >> packages Now we move to the target server and set the package selections according to the package file […]

Read More