2
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 5 years have passed since last update.

RPM が管理しているファイルを確認する方法

Last updated at Posted at 2015-06-23

1.Linux上のファイルが管理されているRPMを確認する方法

例) /etc/redhat-release

確認方法

$ rpm -qf /etc/redhat-release
centos-release-6-4.el6.centos.10.x86_64

2..rpm が管理しているファイルを確認する方法

例) centos-release-6-4.el6.centos.10.x86_64

確認方法

$ rpm -ql centos-release-6-4.el6.centos.10.x86_64
/etc/centos-release
/etc/issue
/etc/issue.net
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Security-6
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Testing-6
/etc/redhat-release
/etc/rpm/macros.dist
/etc/system-release
/etc/system-release-cpe
/etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-Debuginfo.repo
/etc/yum.repos.d/CentOS-Media.repo
/etc/yum.repos.d/CentOS-Vault.repo
/usr/share/doc/centos-release-6
/usr/share/doc/centos-release-6/EULA
/usr/share/doc/centos-release-6/GPL
/usr/share/doc/redhat-release

2
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
2
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?