欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Debian Package Manager - dpkg

程序员文章站 2022-05-31 09:29:44
...

dpkg - Debian Package Manager



1. dpkg --version
Display dpkg version information.
显示dpkg的版本信息

[email protected]:~$ dpkg --version
Debian 'dpkg' package management program version 1.18.4 (amd64).
This is free software; see the GNU General Public License version 2 or later for copying conditions. There is NO warranty.

2. dpkg -?, --help
Display a brief help message.

[email protected]:~$ dpkg -?
[email protected]:~$ dpkg --help

3. dpkg -P package / dpkg --purge package
Purge an installed or already removed package.
删除软件包,清除配置信息

[email protected]:~$ sudo dpkg -P youdao-dict

4. dpkg -r package / dpkg --remove package
Remove an installed package.
删除软件包,保留配置信息

[email protected]:~$ sudo dpkg -r youdao-dict

5. dpkg -l package-name-pattern… / dpkg --list package-name-pattern…
List packages matching given pattern.

[email protected]:~$ dpkg -l youdao-dict

6. dpkg -L package-name… / dpkg --listfiles package-name…
List files installed to your system from package-name.

[email protected]:~$ dpkg -L youdao-dict

7. dpkg -i package-file... / dpkg --install package-file...

Install the package. If --recursive or -R option is specified, package-file must refer to a directory instead.




上一篇: 时间同步

下一篇: node package manager