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 –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 [...]
What does ii correspond to in dpkg (–list)?
You can install packages using dpkg. dpkg is quite a useful command line tool. In addition to installing packages, dpkg also helps to remove packages and know the status of packages. While checking the status of packages using dpkg, you may come across the state ii. $ dpkg –list Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: [...]
How to install packages in Ubuntu from Command Line?
Ubuntu offers two tools which can easily help you to install the packages from the command line. The basic package installation steps in Ubuntu are as follows Search for the correct package name to be installed Install the correct package Two important command line tools for package installation in Ubuntu aptitude apt-get Let’s explore each [...]