Most used commands: list - list packages based on package names search - search in package descriptions show - show package details install - install packages reinstall - reinstall packages remove - remove packages autoremove - Remove automatically all unused packages update - update list of ...
sudo apt search package_name 如果找到,该命令将返回名称与搜索词匹配的包。 查看包的信息 (apt show) 在删除或安装新软件包之前,有关软件包依赖性,安装大小,软件包源等信息可能很有用。 要检索有关给定包的信息,请使用以下 show 命令: sudo apt show package_name 结论 了解如何管理包是 Linux 系统管理的重...
sudo apt show package #获取包的相关信息,如说明、大小、版本等 sudo apt depends package #了解使用依赖 sudo apt rdepends package #查看该包被哪些包依赖 sudo apt-cache pkgnames #执行pkgnames子命令列出当前所有可用的软件包 sudo apt policy package #使用policy命令显示软件包的安装状态和版本信息。
dpkg -L <package> Gives a listing of all the files installed by <package>. See also dpkg -c for checking the contents of a .deb file. dpkg -s <package> Shows information on the installed package <package>. See also apt-cache show for viewing package information in the Debian archive ...
13. show packages information:apt-cache show packagesName 14. use the dpkg to search packages: dpkg -S packageName 15. use the dpkg to show packages info: dpkg -l | grep "packageName" 16. download the source file: apt-get source packageName. This will download three files: a .orig....
Show package information $ apt show -a apache2 Search packages and descriptions $ apt search apache2 https://www.debian.org/doc/manuals/refcard/refcard https://wiki.debian.org/Apt aptitude Show help message $ aptitude -h Show manual
To show help of "apt" command: apt help To display policy: apt policy To update package information, upgrade installed packages and install necessary dependencies: sudo apt update && sudo apt dist-upgrade To install a package ("-y" below is optional. It simply says "yes".): ...
我们利用前面说的apt show <packageName>来查找到该包的描述 然后利用apropos '<description>'来根据包的描述反向查找 例如,我通过sudo apt install 7zip安装了7zip工具 然而,7zip不是可执行文件的名字
package information and package trust relationship and other functions Apt-cache stats displays statistics for all the Debain data sources that are currently in use by the system Apt-cache search + package name, you can find the relevant packages Apt-cache show + package name, which displays deta...
...二、升级软件包(apt upgrade) 定期升级你的 Linux 系统是所有系统安全中最重要的部分。...想要获取一个指定包的信息,使用show命令: sudo apt show package_name 十、总结 了解如何管理软件包是 Linux 系统管理的一个最基础的部分。 2.7K30 如何在 Linux 中使用 apt 命令...