0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

debパッケージTips

Last updated at Posted at 2025-10-22

たまに使う便利なコマンドなど

パッケージに含まれるファイルを列挙

$ dpkg -L <package>

パスの一部を指定してパッケージを検索

$ dpkg -S <file-search-pattern>
()
$ dpkg -S '*libsdl*'

インストールされているパッケージの再設定

設定ファイルを壊してしまった時など、いちいち削除、再インストールしなくても再設定なら以下のコマンドで可能

$ sudo dpkg-reconfigure <package>

パッケージのソースファイルをダウンロード

以下のコマンドでパッケージのソースをダウンロード、展開まで行ってくれる

$ apt-get source <pakcage>

インストールされているパッケージを現在のバージョンに固定

自動ではアップグレードされなくなる

$ sudo aptitude hold <package>

aptitude showなどで確認すると[固定中]と表示される

$ sudo aptitude hold python-sphinx

$ aptitude show python-sphinx
パッケージ: python-sphinx
状態: インストール済み [固定中]
(snip)

固定解除はunhold

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?