У вас есть более старая версия пакета? [дубликат]

На этот вопрос уже есть ответ здесь:

Я добавил apt репозиторий CRAN (R), чтобы получить старую (3.3) версию и сделал

apt-get install r-base-core=3.3.1trusty0

- единственное, чего я сейчас боюсь, - это сделать apt-get update / upgrade , который уничтожит эту версию и мои вещи сломаются. Есть ли способ заставить apt хранить эту старую версию и никогда не обновлять ее, хотя обновлять что-нибудь еще?

2
задан 15 May 2018 в 21:59

1 ответ

Вы можете использовать apt-mark для удержания посылки. Команда должна быть

apt-mark hold <packagename>

Из 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).

Надеюсь, это поможет!

2
ответ дан 2 December 2019 в 03:33

Другие вопросы по тегам:

Похожие вопросы: