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.