持有旧版的包?
我为CRAN(R)添加了一个apt
存储库以获得较旧的(3.3)版本并且确实如此
apt-get install r-base-core=3.3.1trusty0
– 我现在害怕的一件事是做apt-get update/upgrade
会把这个版本吹走,我的东西会破坏。 有没有办法让apt
保持这个旧版本,永远不会升级它,虽然升级其他什么?
您可以使用apt-mark
来保存包。 命令应该是
apt-mark hold
来自apt-mark
apt 1.2.26 (amd64) Usage: apt-mark [options] {auto|manual} pkg1 [pkg2 ...] apt-mark is a simple command line interface for marking packages as manually or automatically installed. It can also be used to manipulate the dpkg(1) selection states of packages, and to list all packages with or without a certain marking. Most used commands: auto - Mark the given packages as automatically installed manual - Mark the given packages as manually installed hold - Mark a package as held back unhold - Unset a package set as held back showauto - Print the list of automatically installed packages showmanual - Print the list of manually installed packages showhold - Print the list of package on hold See apt-mark(8) for more information about the available commands. Configuration options and syntax is detailed in apt.conf(5). Information about how to configure sources can be found in sources.list(5). Package and version choices can be expressed via apt_preferences(5). Security details are available in apt-secure(8).
希望这可以帮助!