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 [...]
Remove a package marked as rc by dpkg
There is a significant difference between dpkg –remove or –purge. dpkg –remove only the package binaries. The configuration files of the package are not deleted. Such packages normally have the state rc. Take for example, a package like usplash in our machine. The package’s configuration files are still part of the system. $ dpkg –list [...]
Remove 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 remove packages using dpkg, it does not remove the configuration files and the state of a package will [...]