# apt-get -o Debug::pkgProblemResolver=yes dist-upgrade 可用apt-show-versions -u可获得可升级软件包的列表。该命令还有一些有用的选项,可用-h选项查看详细帮助,了解更多功能。 3.4 apt-get install packagename —— 安装新软件包 安装一个新软件包。如果软件包需其它软件包支持,apt-get会通过搜索软件包数据...
https://serverfault.com/questions/108080/ubuntu-debian-show-list-of-available-versions-of-a-specific-package https://askubuntu.com/questions/473886/list-all-versions-of-a-package https://askubuntu.com/questions/447/how-can-i-see-all-versions-of-a-package-that-are-available-in-the-archive http...
apt-show-versions -a <<package name>> 1. 说明:列举出所有版本,且能查看是否已经安装。还可以通过apt-show-versions -u <<package name>>来查询是否有升级版本。 参考:http://manpages.ubuntu.com/manpages/trusty/man1/apt-show-versions.1p.html 7、 whohas -d Debian,Ubuntu <<package name>> | t...
apt-get --reinstall install package_name 在需安装的软件包名后加一个减号会删除软件包,如:apt-get install package_name-。3.5 apt-get remove packagename —— 卸载已安装软件包(保留配置文件)若想删除无用的软件包,只需使用该命令即可。此命令会保留软件的配置文件。不删除依赖软件包,且保...
删除软件包命令:sudo apt remove <package_name> 清理不再使用的依赖和库文件: sudo apt autoremove 移除软件包及配置文件: sudo apt purge <package_name> 查找软件包命令: sudo apt search <keyword> 列出所有已安装的包:apt list --installed 列出所有已安装的包的版本信息:apt list --all-versions 实例 查...
apt-get updateupdates the list of available packages and their versions, but it does not install or upgrade any packages. apt-get upgradeactually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you hav...
E: The package lists or status file could not be parsed or opened. ubuntu apt-get 源损坏 1、原文件备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 1. 2、编辑源列表文件 sudo emacs /etc/apt/sources.list 1. 3、将原来的列表删除,添加如下内容(默认ubuntu镜像源) ...
Package:vsftpdVersions:2.3.5-3ubuntu1(/var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_quantal_main_binary-i386_Packages)Description Language:File:/var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_quantal_main_binary-i386_PackagesMD5:81386f72ac91a5ea48f8db0b023f3f9b ...
使用“apt-file list”显示位于 apache2 包内的所有文件,如下所示。 $ 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 ...
apt-get --compile source packagename 下载包的源代码,解压、编译源代码#查看系统中已经安装的包apt-get list --installed dpkg -l#查看系统中所有能升级的包apt-get list --upgradeable#查看系统中所有能找到的包及版本apt-get --all -versions#编辑源列表apt-get edit-sources ...