離線 安裝包管理命令
rpm文章來源:http://www.zghlxwxcb.cn/news/detail-794337.html
#####
#檢查安裝包是否認證成功 簡單講 來源是否可靠
rpm --checksig xxx.rpm
rpm --checksig nmap-7.92-1.x86_64.rpm
nmap-7.92-1.x86_64.rpm: sha1 md5 OK
####
安裝前檢驗包的依賴庫
rpm -qpR nmap-7.92-1.x86_64.rpm
python >= 2.4
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsXz) <= 5.2-1
####
#安裝 -i 安裝 -v 顯示詳細信息 -h 在打包歸檔文件解壓縮時打印哈希標(biāo)記
rpm -ivh xxx.rpm
rpm -ivh nmap-7.92-1.x86_64.rpm
####
#安裝以后查看是否安裝成功
rpm -q xxx.rpm
rpm -q nmap-7.92-1.x86_64.rpm
package nmap-7.92-1.x86_64.rpm is not installed
####
#查看安裝了哪些文件
rpm -ql nmap
/usr/bin/ndiff
/usr/bin/nmap
/usr/lib/python2.6/site-packages/ndiff.py
/usr/lib/python2.6/site-packages/ndiff.pyc
/usr/lib/python2.6/site-packages/ndiff.pyo
####
#查詢最近安裝的軟件
rpm -qa --last
rpm -qa --last | grep nmap
####
#更新軟件 注意是大寫 U
rpm -Uvh tree-1.6.0-10.el7.x86_64.rpm
####
#刪除軟件
rpm -evv 軟件名
rpm -evv nmap
####
#查看軟件的詳細信息
rpm -qi 軟件名
rpm -qi nmap
Name : nmap
Epoch : 2
Version : 7.92
Release : 1
Architecture: x86_64
Install Date: Fri 12 Jan 2024 02:44:50 PM CST
Group : Applications/System
Size : 28008919
License : https://nmap.org/man/man-legal.html
Signature : (none)
Source RPM : nmap-7.92-1.src.rpm
Build Date : Sat 07 Aug 2021 11:40:33 PM CST
Build Host : localhost
Relocations : (not relocatable)
URL : https://nmap.org
Summary : Network exploration tool and security scanner
Description :
Nmap ("Network Mapper") is a free and open source utility
for network exploration or security auditing. Many systems and network
administrators also find it useful for tasks such as network
inventory, managing service upgrade schedules, and monitoring host or
service uptime. Nmap uses raw IP packets in novel ways to determine
what hosts are available on the network, what services (application
name and version) those hosts are offering, what operating systems
(and OS versions) they are running, what type of packet
filters/firewalls are in use, and dozens of other characteristics. It
was designed to rapidly scan large networks, but works fine against
single hosts. Nmap runs on all major computer operating systems, and
both console and graphical versions are available.
######################################################
http://rpmfind.net
http://www.redhat.com
http://freshrpms.net/
http://rpm.pbone.net/
注意 如果只想安裝不展示安裝信息 rpm -i xxx.rpm
參考1
參考2文章來源地址http://www.zghlxwxcb.cn/news/detail-794337.html
到了這里,關(guān)于linux |離線安裝軟件 | rpm命令的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!