dpkg tutorial – Package Manager for Ubuntu / Debian
dpkg or the debian package manager is package manager for debian and other debian based Linux distributions like Ubuntu. dpkg can be used for a variety of purposes Installation of packages Removal of packages Knowing the current state of a package Cloning a machine Let’s see how each of these can be done using dpkg. [...]
How to find the installed packages in your Ubuntu machine?
Before moving further, go through Understanding the state of a package. If the state of a package is “ii“, the package is installed. With this logic, we can find the installed packages in the system $ dpkg –list| grep “^ii” ii acpi-support 0.136 scripts for handling many ACPI events ii acpid 1.0.10-5ubuntu2 Advanced Configuration and [...]
dpkg –set-selections: Clone your Ubuntu Machine (package state)
If you want to clone another machine in a similar way as one of your other machine, you can make use of dpkg command. What does cloning mean? Cloning a machine means installing the same packages (sometimes even settings) as found in the source machine. dpkg allows you to get the current state of your [...]
Remove all packages marked as rc by dpkg
Let’s see all the packages marked as rc by dpkg. Know more about the state rc. This state means that the configuration files are not yet removed. You can see how a single package can be removed. $ dpkg –list |grep “^rc” rc bsh 2.0b4-10ubuntu2 Java scripting environment (BeanShell) Versi rc devicekit-disks 007-2ubuntu6 abstraction for [...]
dpkg –get-selections: Get the Current State of Your Ubuntu/Debian machine
dpkg can be used for a variety of purposes. It can be used to install and remove packages. But one of the best feature which you can use is to save the current state of your machine. What is current state of your machine? You may be wondering what does the current state means. Your [...]
Purge packages using dpkg
dpkg can be used to install packages remove packages know the current status of packages When we decide to remove a package, we must be clear that we want to remove or purge a package. When we purge packages using dpkg, it removes not only the binaries but also the configuration files and the state [...]
dpkg: purge versus remove
dpkg can be used to install, remove and check the current state of a package. Every package contains the following components package binaries configuration files dpkg has two options –remove and –purge. Both these options are used to remove package contents. But there is a significant difference between the two.’ dpkg –remove is used to [...]