「エアコンの安全な修理・適切なフロン回収」はこちら

RPMパッケージ管理

RPMパッケージ管理

RPMパッケージの情報を表示

Display RPM package information To find out what features a particular package provides, use the -q option to make a query, and the -i sub-option in combination to display that information. Specify the package name of the package for which you want to display information as an argument.
RPMパッケージ管理

RPMパッケージがインストールされたディレクトリを表示する

Display the directory where the RPM package is installed. To find out where the relevant files are when you install a particular package, run the rpm command with the To check where the related files are located after installing a particular package, run the rpm command with the "-ql" option. Specify the package name as an argument.
RPMパッケージ管理

特定のプログラムがどのRPMパッケージに含まれているかを確認する

Check which RPM package a particular program is included in. To check which RPM package a particular program is included in, add the "-qf" option to the rpm command and specify the program (executable file) as an argument. [root@Lion ~]# rpm -qf /usr/sbin/dovecot dovecot-2.2.36-3.el7.x86_64
RPMパッケージ管理

RPMパッケージのインストールテストを行う

Test the installation of RPM packages. Sometimes, due to dependencies, conflicts, or other problems, an error message will be displayed when executing the install command and the installation will fail. It is possible to test for such problems before installation. To do so, run the rpm command with the "--test" option and execute the installation. [root@Lion ~]# rpm -ivh --test zlib-devel-1.2.3-4vl5.i386.rpm ↑Test the installation of the rpm package
RPMパッケージ管理

RPM依存パッケージを表示する

Show RPM dependent packages Dependencies are often a problem when manipulating packages, such as installing, upgrading, or removing RPM packages. So to avoid these problems, it is important to check the dependencies in advance. To check what package a particular package depends on, run the rpm command with the "-q" option in combination with the "-R" option to display the name of the dependent package.
RPMパッケージ管理

RPMパッケージをインストールする

RPMパッケージをインストールする rpmパッケージをインストールするには、rpmコマンドにオプション「-i」を付けてコ...
RPMパッケージ管理

YUMによるパッケージ管理

YUMによるパッケージ管理 CentOSや、Fedoraには、RPMパッケージの依存関係を自動的に解消してインストールす...
RPMパッケージ管理

公開鍵をインポートする

公開鍵をインポートするには rpmコマンドでパッケージをインストールする際、下記のような警告メッセージが表示される場合が...
RPMパッケージ管理

RPMデータベース

RPM Database ●Rebuild the RPM database. Information about RPM packages is stored in the RPM database. When searching for information about a package, this RPM database plays an important role, but sometimes it gets corrupted. In such a case, the RPM database can be rebuilt by running the rpm command with the "--rebuilddb" option. [root@Lion ~]# rpm --rebuilddb [root@Lion ~]# ●Create a new RPM package database. To create a new RPM package database, run the rpm command with the "--initdb" option.
RPMパッケージ管理

インストール済みのRPMパッケージを確認

Check the installed RPM packages. Red Hat Enterprise Linux and CentOS, which was developed based on Red Hat Enterprise Linux, use a package management tool called RPM (Redhat Package Manager).。 RPM is a handy management tool that allows you to easily install and uninstall software and manage RPM packages with dependencies in mind, preventing you from accidentally removing RPM packages that you need. If you want to use this RPM, use the "rpm" command. Use the "-q" option to examine the RPM packages already installed, and the "-a" option to list the installed packages. rpm -qa" alone will show you all the packages installed on your Linux system, and is not suitable for checking specific packages. It is not suitable for checking a specific package. To check if a specific package is installed, specify the PRM package you want to check in "rpm -qa".