Tagged as: Debian dpkg Command , dpkg examples. I have found some problems with apt-get, and have been using the gui alternatives most of the time. If you want to remove the package completely including configuration file you have to use —purge command: sudo dpkg —purge. Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. Next post: Geeky Wrap-up: Week of Jun 14, All rights reserved Terms of Service.
Question: I would like to know how to install, uninstall, verify deb packages on Debian. Installing a Deb Using dpkg -i syntax: dpkg -i package-file-name -i is to install a package. The following example installs the Debian package for tcl tool. Reading database In case, you are installing a package which requires some dependencies, you will receive an error like this:. Also, the dpkg will not install the package and will leave it in an unconfigurable and broken state.
This command will fix the broken package and install the required dependencies assuming they are available in the system repository. Although you can verify the package installation by searching it through the Ubuntu dash menu. If it is available there, that verifies the package is installed. However, the dpkg also allows you to verify the package installation. Simply type dpkg with —status or —s option to verify the package installation:. Once you no longer need an installed package, you can remove it using the dpkg command.
For removing an installed package, you will need to mention the installed package name instead of mentioning the. To find out the exact package name, you can use the following command with any keyword related to the package name:.
Once you have found the exact name of the installed package, you can remove it using the following syntax using the —remove or —r option:. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. Have a question or suggestion?
Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.
Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. Learn how your comment data is processed. If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts?
0コメント