LoginSignup
1
0
お題は不問!Qiita Engineer Festa 2024で記事投稿!
Qiita Engineer Festa20242024年7月17日まで開催中!

rpmパッケージが提供するファイルをインストールせずに知りたい

Posted at

インストール済みのrpmパッケージが提供するファイル一覧を調べるには

rpm -ql package

を実行すれば良いですが、やはりインストールする前に確認したい事があります。
その時は

dnf repoqueli --list package

を実行します。

実行例

インストール前

dnf repoquery --list openssh-client
[root@b9d987dc95cb /]# dnf repoquery --list openssh-clients
Last metadata expiration check: 0:09:55 ago on Thu Jun 13 08:09:37 2024.
/etc/ssh/ssh_config
/etc/ssh/ssh_config.d
/etc/ssh/ssh_config.d/50-redhat.conf
/usr/bin/scp
/usr/bin/sftp
/usr/bin/ssh
/usr/bin/ssh-add
/usr/bin/ssh-agent
/usr/bin/ssh-copy-id
/usr/bin/ssh-keyscan
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/e7c97c1a34bc09eaff83a1ba56584431a2279c
/usr/lib/.build-id/45
/usr/lib/.build-id/45/215b12d3cbea348533dc617a288fe9ca441710
/usr/lib/.build-id/56
/usr/lib/.build-id/56/171f3b9bcacbf35d60877269db0ecef914ace6
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/cc5a7abeb94743b20a40ccf4c4179d32250446
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/449959a87ef036c7e4664a1446188098a85a98
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/7811927e4017f0e0c04fb99ab04021a33cc478
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/e881104af5509e6b6a28a82d710550bd693152
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/0427ae4cf5c69966a534f397d139c8008c796f
/usr/lib/systemd/user/ssh-agent.service
/usr/libexec/openssh/ssh-pkcs11-helper
/usr/libexec/openssh/ssh-sk-helper
/usr/share/man/man1/scp.1.gz
/usr/share/man/man1/sftp.1.gz
/usr/share/man/man1/ssh-add.1.gz
/usr/share/man/man1/ssh-agent.1.gz
/usr/share/man/man1/ssh-copy-id.1.gz
/usr/share/man/man1/ssh-keyscan.1.gz
/usr/share/man/man1/ssh.1.gz
/usr/share/man/man5/ssh_config.5.gz
/usr/share/man/man8/ssh-pkcs11-helper.8.gz
/usr/share/man/man8/ssh-sk-helper.8.gz

インストール後

rpm -ql openssh-client
[root@b9d987dc95cb /]# rpm -ql openssh-clients
/etc/ssh/ssh_config
/etc/ssh/ssh_config.d
/etc/ssh/ssh_config.d/50-redhat.conf
/usr/bin/scp
/usr/bin/sftp
/usr/bin/ssh
/usr/bin/ssh-add
/usr/bin/ssh-agent
/usr/bin/ssh-copy-id
/usr/bin/ssh-keyscan
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/e7c97c1a34bc09eaff83a1ba56584431a2279c
/usr/lib/.build-id/45
/usr/lib/.build-id/45/215b12d3cbea348533dc617a288fe9ca441710
/usr/lib/.build-id/56
/usr/lib/.build-id/56/171f3b9bcacbf35d60877269db0ecef914ace6
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/cc5a7abeb94743b20a40ccf4c4179d32250446
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/449959a87ef036c7e4664a1446188098a85a98
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/7811927e4017f0e0c04fb99ab04021a33cc478
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/e881104af5509e6b6a28a82d710550bd693152
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/0427ae4cf5c69966a534f397d139c8008c796f
/usr/lib/systemd/user/ssh-agent.service
/usr/libexec/openssh/ssh-pkcs11-helper
/usr/libexec/openssh/ssh-sk-helper
/usr/share/man/man1/scp.1.gz
/usr/share/man/man1/sftp.1.gz
/usr/share/man/man1/ssh-add.1.gz
/usr/share/man/man1/ssh-agent.1.gz
/usr/share/man/man1/ssh-copy-id.1.gz
/usr/share/man/man1/ssh-keyscan.1.gz
/usr/share/man/man1/ssh.1.gz
/usr/share/man/man5/ssh_config.5.gz
/usr/share/man/man8/ssh-pkcs11-helper.8.gz
/usr/share/man/man8/ssh-sk-helper.8.gz

なお、インストール前にrpmコマンドを実行すると当たり前ですがパッケージがインストールされていない。という表示になります。

[root@b9d987dc95cb /]# rpm -ql openssh-clients
package openssh-clients is not installed
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