sudo apt show package #获取包的相关信息,如说明、大小、版本等 sudo apt depends package #了解使用依赖 sudo apt rdepends package #查看该包被哪些包依赖 sudo apt-cache pkgnames #执行pkgnames子命令列出当前所有可用的软件包 sudo apt policy package #使用policy命令显示软件包的安装状态和版本信息。
Desired=Unknown/Install/Remove/Purge/Hold|Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed|/Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)||/Name Version Description+++-===-===-===ii aalib11.4p5-28ascii art library-transitional package ii...
apt-cache search # ---(package 搜索包) apt-cache show #---(package 获取包的相关信息,如说明、大小、版本等) apt-get install # ---(package 安装包) apt-get install # ---(package --reinstall 重新安装包) apt-get -f install # ---(强制安装, "-f = --fix-missing"当是修复安装吧......
apt-cacheshow#---(package获取包的相关信息,如说明、大小、版本等) apt-getinstall#---(package安装包) apt-getinstall#---(package--reinstall重新安装包) apt-get-finstall#---(强制安装,"-f=--fix-missing"当是修复安装吧...) apt-getremove#---(package删除包) apt-getremove--purge#---(packag...
abhishek@itsfoss:~$ apt show ubuntu-restricted-extras Package: ubuntu-restricted-extras Version: 67 Priority: optional Section: multiverse/metapackages Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size...
说明: Packages.gz这个文件其实是一个“索引”文件,里面记录了各种包的包名Package、运行平台(Architecture)、版本号(Version)、依赖关系(Depends)、deb包地址(Filename)等 。注意到Filename指向的是源服务器pool目录下的某个deb。因此我们可以猜测,apt-get install 某个软件时,其实就是基于这些Packages.gz来计算依赖...
apt-cache show package:获取包的相关信息,如说明、大小、版本等 sudo apt-get install package:安装包 sudo apt-get install package --reinstall:重新安装包 sudo apt-get -f install:修复安装 sudo apt-get remove package:删除包 sudo apt-get remove package --purge:删除包及其配置文件 ...
If the package is installed, the command apt-show-versions will show version information about a specific package: apt-show-versions <package> In the snapshot below, we installed the command apt-show-versions and then we apply it to sudo command : Linux check package version If you like ...
Install Particular Package Version in CentOS Considering the above situation, a newer version of the packages is already installed on the system. Therefore, you need to remove the installed package version, if you want to install an older version from the available packages as shown. ...
2. Combineapt listwith thegrepcommand to match a package by name: apt list --installed | grep -i <package name> The-itag ignores letter casing, providing a broader search. 3. Another way to get package information is to use theapt showcommand: ...