rpm

rpm文件安装,使用rpm指令

 

1、查看一个rpm文件软件包的用途等详细信息

 

rpm -qpi yasm-1.2.0-4.sdl7.x86_64.rpm

 

 

警告:yasm-1.2.0-4.sdl7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 41a40948: NOKEY
Name        : yasm
Version     : 1.2.0
Release     : 4.sdl7
Architecture: x86_64
Install Date: (not installed)
Group       : Development/Languages
Size        : 2079592
License     : BSD and (GPLv2+ or Artistic or LGPLv2+) and LGPLv2
Signature   : RSA/SHA256, 2014年07月08日 星期二 07时38分55秒, Key ID 16cfc33341a40948
Source RPM  : yasm-1.2.0-4.sdl7.src.rpm
Build Date  : 2014年07月08日 星期二 03时53分06秒
Build Host  : polo.springdale.princeton.edu
Relocations : (not relocatable)
URL         : http://yasm.tortall.net/
Summary     : Modular Assembler
Description :
Yasm is a complete rewrite of the NASM assembler under the "new" BSD License
(some portions are under other licenses, see COPYING for details). It is
designed from the ground up to allow for multiple assembler syntaxes to be
supported (eg, NASM, TASM, GAS, etc.) in addition to multiple output object
formats and even multiple instruction sets. Another primary module of the
overall design is an optimizer module.

2、查看rmp 文件包包含的文件

 

rpm -qpd yasm-1.2.0-4.sdl7.x86_64.rpm

 


 

警告:yasm-1.2.0-4.sdl7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 41a40948: NOKEY
/usr/share/doc/yasm-1.2.0/AUTHORS
/usr/share/doc/yasm-1.2.0/Artistic.txt
/usr/share/doc/yasm-1.2.0/BSD.txt
/usr/share/doc/yasm-1.2.0/COPYING
/usr/share/doc/yasm-1.2.0/GNU_GPL-2.0
/usr/share/doc/yasm-1.2.0/GNU_LGPL-2.0
/usr/share/man/man1/yasm.1.gz

 

3、查看一个软件包的依赖关系

 

rpm -qpR yasm-1.2.0-4.sdl7.x86_64.rpm

 

 

警告:yasm-1.2.0-4.sdl7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 41a40948: NOKEY
libc.so.6()(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
 

 

 

4、rpm文件的安装、升级、删除

 

安装

rmm -ivh yasm-1.2.0-4.sdl7.x86_64.rpm

 

警告:yasm-1.2.0-4.sdl7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 41a40948: NOKEY
准备中...                          ################################# [100%]
    软件包 yasm-1.2.0-4.sdl7.x86_64 已经安装

更新

rmm -Uvh yasm-1.2.0-4.sdl7.x86_64.rpm  

删除

rpm -e yasm

 

##############重要的放到最后###################

rpm --help 查看帮助

 

 

 

posted @ 2018-01-02 23:57  王亚锋  阅读(343)  评论(0编辑  收藏  举报