LoginSignup
1
0

More than 5 years have passed since last update.

debの取扱いクイックリファレンス

Last updated at Posted at 2017-05-13

aptからdebを落とす

$ apt-get download <package>

debをcontrolなど含めて展開する

$ dpkg-deb -R <deb> <dst>
#   -R|--raw-extract <deb> <directory>
#                                   Extract control info and files.

debをパッケージングする

詳細は https://www.debian.org/doc/manuals/maint-guide/build.ja.html

$ sudo apt-get install devscripts
$ cd <path_to_extracted_deb>
$ debuild -us -uc

debに含まれるファイルを一覧表示

$ dpkg-deb --contents <deb>

パッケージによってインストールされているファイルを一覧表示

$ dpkg-query -L <package>

ファイルがどのパッケージによってインストールされているかを調べる

$ dpkg -S <path>

ファイルがリポジトリ上のどのパッケージでインストールされるかを調べる

$ sudo apt-get installl apt-file
$ sudo apt-file update
$ apt-file search <regex>

逐次追記予定

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