文書更新:2018年05月28日(月) 午前11時16分59秒

Home > 備忘録 > Linux > rpm について > rpmコマンドの使用例( 8 )

よく使うrpmコマンド

  1. 新たにパッケージをインストールする
  2. [root@server]# rpm -ivh httpd-2.4.3-12.fc18.i686.rpm
  3. パッケージを強制的にインストールする
  4. [root@server]# rpm -ivh --force httpd-2.4.3-12.fc18.i686.rpm
  5. パッケージをアップデートする
  6. [root@server]# rpm -Uvh httpd-2.4.3-12.fc18.i686.rpm
  7. パッケージをアンインストールする
  8. [root@server]# rpm -e httpd
  9. システムにインストールされているパッケージをすべて表示する
  10. [root@server]# rpm -qa
    redhat-lsb-submod-security-4.1-5.fc18.i686
    iso-codes-3.40-1.fc18.noarch
    pinta-1.4-1.fc18.i686
    libselinux-utils-2.1.12-7.fc18.i686
    control-center-filesystem-3.6.3-1.fc18.i686
    python-deltarpm-3.6-0.11.20110223git.fc18.i686
    	~~~~~途中省略~~~~~
    unzip-6.0-7.fc18.i686
    libwayland-server-1.0.3-1.fc18.i686
    glibc-common-2.16-28.fc18.i686
    tar-1.26-9.fc18.i686
    libaio-0.3.109-6.fc18.i686
  11. システムにインストールされているパッケージの情報を表示する
  12. [root@server]# rpm -qi httpd
    Name        : httpd
    Version     : x.x.x
    Release     : xx.xxxx
    Architecture: i686
    Install Date: 20xx年xx月xx日 06時xx分54秒
    Group       : System Environment/Daemons
    Size        : xxxxxxx
    License     : ASL x.x
    Signature   : RSA/SHAxxx, 20xx年xx月xx日 xx時xx分xx秒, Key ID xxxxxxxxxxxxx
    Source RPM  : httpd-x.x.x-xx.xxxx.src.rpm
    Build Date  : 20xx年xx月xx日 xx時xx分xx秒
    Build Host  : buildvm-xx.xxxx.fedoraproject.org
    Relocations : (not relocatable)
    Packager    : Fedora Project
    Vendor      : Fedora Project
    URL         : http://httpd.apache.org/
    Summary     : Apache HTTP Server
    Description :
    The Apache HTTP Server is a powerful, efficient, and extensible
    web server.