0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

システムの現状を知るためによく利用する rpm コマンド

Last updated at Posted at 2022-12-18

このファイルって、どのパッケージからインストールされてるんだっけ?

$ rpm -qf /etc/httpd/conf/httpd.conf
httpd-2.4.6-97.el7.centos.5.x86_64

このパッケージにはどんなファイルが含まれるっけ?

$ rpm -ql httpd | head -n 5
/etc/httpd
/etc/httpd/conf
/etc/httpd/conf.d
/etc/httpd/conf.d/README
/etc/httpd/conf.d/autoindex.conf

このパッケージが依存するパッケージやファイルは?

$ rpm -q --requires httpd | head -n 5
/etc/mime.types
system-logos >= 7.92.1-1
httpd-tools = 2.4.6-97.el7.centos.5
/usr/sbin/useradd
/usr/sbin/groupadd
0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?