Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What's the difference between pt-get and dpkg?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail what is the difference between pt-get and dpkg. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

The difference between the two is that dpkg bypasses the apt package management database to operate the package, so the package you installed with dpkg can be installed again with apt, the system does not know that it has been installed before, and will overwrite the previous installation of dpkg.

1. Dpkg is used to install .deb files, but does not solve module dependencies, and does not care about the software in ubuntu's software repository, so it can be used to install local deb files.

2. Apt will resolve and install module dependencies, and consult the software repository, but will not install local deb files. Apt is a software management tool based on dpkg.

Install the package

Dpkg-I package_name.deb / / installs the local package without resolving dependencies

Apt-get install package / / online installation package

Aptitude install pattern / / ditto

Apt-get install package-- reinstall / / reinstall the package

Apitude reinstall package / / ditto

Remove package

Dpkg-r package / / remove the package

Apt-get remove package / / ditto

Aptitude remove package / / ditto

Dpkg-P / / Delete software packages and configuration files

Apt-get remove package-purge / / delete software packages and configuration files

Apitude purge pattern / / ditto

Automatically remove software packages

Apt-get autoremove / / remove packages that are no longer needed

To use apt-get install and dpkg-I, you need to download the compiled binary deb package first.

Make and gcc are used to compile source code, that is, to compile decimal source code into binary machine code.

Apt-get install, aptitude install or dpkg-I are commonly used on ubuntu, but some computer enthusiasts like to find the source code of the software to compile into binary files and install it.

I have downloaded deb. Can I install it with apt or dpkg? In addition, can the tar.gz file be installed in this way after decompression? I think the Internet says to install make. The apt-get tool downloads the deb package from the software source server and installs it automatically. For example, to install a VLC player on a ubuntu system, simply execute the command sudo apt-get install vlc in the terminal, and then enter the user's password. If you download the deb package yourself, you can directly double-click the deb package file to bring up the ubuntu software center to install, or you can install it using the dpkg command line tool. Files in tar.gz or tar.bz2 tar.xz format are usually decimal source code, which must be compiled into binary machine code using make or gcc and then installed. About what the difference between pt-get and dpkg is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report