Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 列出可用于软件包的早期版本,并通过apt get安装其中一个_Linux_Debian_Aptitude - Fatal编程技术网

Linux 列出可用于软件包的早期版本,并通过apt get安装其中一个

Linux 列出可用于软件包的早期版本,并通过apt get安装其中一个,linux,debian,aptitude,Linux,Debian,Aptitude,来自 debhttp://apt.postgresql.org/pub/repos/apt/ 拉伸pgdg主管道 存储库有一个问题,我想返回到10.4版本,我知道它正在以我想要的方式工作 apt缓存madison postgresql-10将这些信息返回给我atm: postgresql-10 | 10.5-2.pgdg90+1 |http://apt.postgresql.org/pub/repos/apt 拉伸pgdg/主amd64包 postgresql-10 | 10.5-2.pgdg9

来自
debhttp://apt.postgresql.org/pub/repos/apt/ 拉伸pgdg主管道

存储库有一个问题,我想返回到
10.4
版本,我知道它正在以我想要的方式工作

apt缓存madison postgresql-10
将这些信息返回给我atm:
postgresql-10 | 10.5-2.pgdg90+1 |http://apt.postgresql.org/pub/repos/apt 拉伸pgdg/主amd64包
postgresql-10 | 10.5-2.pgdg90+1 |http://apt.postgresql.org/pub/repos/apt 延伸pgdg/主要来源

如何找到
10.4
的先前软件包版本?
当我尝试使用我在某处找到的版本号时(在巧克力网站上:我不知道如何搜索,有点迷路),它没有成功:
sudo apt get install postgresql-10=10.4.0.20180721
E:找不到“postgresql-10”的版本“10.4.0.20180721”

转到
postgresql
存储库,我没有找到关于如何获取任何以前版本的线索

更一般地说,通过命令行和智能命令,列出可以为软件包安装哪些早期版本的方法是什么?
例如,是否有一个标准为以前的版本设置了另一个位置,比如我应该总是在存档/../或其他形式中找到的存档存储库

谢谢

apt cache showpkg将列出所有可用版本

这两个中的任何一个

  • apt安装=
  • apt-t=install
apt标记保持
将阻止自动升级

postgresql现在是第11版,可从主网站获得

在github上,在“发出拉取请求”旁边单击master,将选择更改为“10稳定”,然后发出拉取请求。如果10 stable是10.5,则需要修复该错误。如果这不容易,您可以比较9.5稳定版本(仅1066个被修改的文件)中的代码,并进行修改。他们没有为其他版本保留标签,真是糟糕透了

资料来源:


编辑:在检查可用的软件包之前,不要忘记更新。

你能重新打开这个问题吗,即使它有点离题(但重点是apt命令),但它已经达到1k视图,有它的兴趣吗?