一、通过apt-get安装指定版本
apt-get install <<package name>>=<<version>>
二、查询指定软件有多少个版本
说明:在Linux用这个查询并不能完全的把所有版本都列举出来,因为每个版本都与系统版本和CPU架构有关,比如一个软件支持Ubuntu系统的16.04的CPU架构为amd64的版本只有1.0和1.2,其余都不支持,所以列举时就只有两款。
列举版本列表:
0、通过网站搜索:
1、
apt-cache madison <<package name>>
将列出所有来源的版本。如下输出所示:
apt-cache madison vim vim | 2:7.3.547-1 | http://debian.mirrors.tds.net/debian/ unstable/main amd64 Packages vim | 2:7.3.429-2 | http://debian.mirrors.tds.net/debian/ testing/main amd64 Packages vim | 2:7.3.429-2 | http://http.us.debian.org/debian/ testing/main amd64 Packages vim | 2:7.3.429-2 | http://debian.mirrors.tds.

本文介绍了在Ubuntu系统中如何通过apt-get命令安装指定版本的软件以及查询软件的不同版本。详细讲解了包括`apt-cache policy`、`apt-cache show`等多个命令的用法,并提供了一些实用的查询技巧和参考资料。
最低0.47元/天 解锁文章
8231

被折叠的 条评论
为什么被折叠?



