LoginSignup
18
28

More than 5 years have passed since last update.

パッケージが更新されないようにする

Posted at

apt の場合

apt-mark hold パッケージ名

あるいは

aptitude hold パッケージ名

解除するときは

apt-mark unhold パッケージ名
aptitude unhold パッケージ名

dpkg だと

echo "パッケージ名 hold" | dpkg --set-selections

echo "パッケージ名 install" | sudo dpkg --set-selections

ホールドされているパッケージのリストは

dpkg --get-selections | grep hold

あるいは

dpkg -l | grep '^h'

yum の場合

/etc/yum.conf に exclude= でスペース区切りのリストで指定する。

exclude=パッケージ名 [パッケージ名 ...]

パッケージ名にはシェルのグロブ (*?) が使用できる。

18
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
28