Debian based Linux system(Ubuntu)包管理工具(2)

$ apt-file list apache2 | more   apache2: /usr/share/bug/apache2/control   apache2: /usr/share/bug/apache2/script   apache2: /usr/share/doc/apache2/NEWS.Debian.gz   apache2: /usr/share/doc/apache2/README.Debian.gz   apache2: /usr/share/doc/apache2/changelog.Debian.gz   ...  

7.apt-cache depends: List all Dependent Packages

apt-cache depends + 包, 显示包的所有依赖。在安装包前需要检查安装包所有的依赖

$ apt-cache depends apache2   apache2    |Depends: apache2-mpm-worker    |Depends: apache2-mpm-prefork     Depends: apache2-mpm-event  

8. dpkg -l: Is the Package Already Installed?

dpkg -l ,  显示系统中所有的安装包

9. apt-get install: Install a Package

apt-get install +  包,安装包。

10. apt-get remove: Delete a Package

apt-get remove/purge , 删除包

     apt-get remove will not delete the configuration files of the package

     apt-get purge will delete the configuration files of the package

11. apt-get -u install: Upgrade a Specific Package

apt-get -u install + 包,更新安装包。

12. apt-get -u upgrade: Upgrade all Packages

更新所有安装包。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/23527.html