Linux 在 Debian Squeeze 上升级 phpmyadmin(和其他软件包)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9812330/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Upgrading phpmyadmin (and other packages) on Debian Squeeze
提问by ClaytonDaniels
I just setup a new VM with Debian Squeeze (latest stable release, 6.0.4). I am going for a webserver, so I installed the usual... apache, php5, mysql, phpmyadmin, etc.
我刚刚用 Debian Squeeze(最新的稳定版本,6.0.4)设置了一个新的 VM。我要去一个网络服务器,所以我安装了通常的...... apache、php5、mysql、phpmyadmin等。
Everything went well, everything is working.
一切顺利,一切正常。
My question is about upgrading packages. I noticed the phpmyadmin version is 3.3.7... the latest is 3.4.10.1. Doing apt-get update/upgrade does not upgrade the package.
我的问题是关于升级包。我注意到 phpmyadmin 版本是 3.3.7...最新的是 3.4.10.1。执行 apt-get update/upgrade 不会升级包。
How does one go about upgrading packages on a Debian Squeeze server if apt-get update/upgrade does not work?
如果 apt-get update/upgrade 不起作用,如何在 Debian Squeeze 服务器上升级软件包?
Thanks!
谢谢!
采纳答案by Bubuntux
You can download the latest version from the official pageand follow the instrucctions inside the compress file for the installation.
您可以从官方页面下载最新版本,然后按照压缩文件中的说明进行安装。
Alternatively if you want to use the debian repositories, you can add
或者,如果您想使用 debian 存储库,您可以添加
deb http://ftp.us.debian.org/debian testing main contrib non-free
in the file /etc/apt/source.list
在文件 /etc/apt/source.list 中
Also add
还添加
Package: *
Pin: release n=testing
Pin-Priority: 500
in /etc/apt/preferences
在 /etc/apt/preferences
doing this you will have all the packages for the testing version, but they're not going to be installed unless you specify it, so run
这样做你将拥有测试版本的所有包,但除非你指定它们,否则它们不会被安装,所以运行
apt-get update
apt-get install <package name>=<version>
for example
例如
apt-get install phpmyadmin=3.4.10.1-1
you can check the different versions with
你可以检查不同的版本
apt-cache showpkg phpmyadmin