What is info in dpkg in linux?

Source: Internet
Author: User
Article Title: What is info in dpkg in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

To put it simply, dpkg is a dpkg which is Debian's intermediate Software Package Manager, similar to RPM.

Among them, "/var/lib/dpkg/info" is used to save the configuration file list of each software package.

If you delete all the items in this file, the system will not be paralyzed (I tried it, haha). It seems to be connected to the/etc/init. d/related directory command. The Terminal command for the software package comes from there (for the time being, hehe thinks). For example, if you install mysql on your own, no/ect/init is available. in d, the mysql file Terminal cannot be executed: service mysql restart cannot restart mysql, and various liunx commands may be different, it seems that the command "service mysqld [stop | restart]" is displayed. I just mentioned that my system is ubuntu.

However, if you accidentally delete the directory of ect/init. d, reinstalling the directory will not help. So how to restore the corresponding file in/ect/init. d?

Currently, only the following methods are successful:

Delete the corresponding content in/var/lib/dpkg/info. Generally, a software has several corresponding files, but they can be distinguished. For example, mysql starts with mysql, then reinstall the current package, and the system will go to/etc/init again. d.

For example:/etc/init. d/mysql. Try the command: sudo service mysql restart.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.