基於redhat系統的軟體包管理

2022-05-03 07:03:13 字數 717 閱讀 2981

安裝:

rpm -ivh  *.rpm

解除安裝:

rpm -e *.rpm

查詢:

rpm -q 軟體名//查詢單個軟體

rpm -qa 軟體名//查詢系統中所有已安裝的軟體包

rpm -ql 軟體名//查詢已安裝軟體包都安裝到何處(路徑)

rpm -qi 軟體名//查詢已安裝軟體包的詳細資訊

rpm -qd 軟體名      //查詢已安裝軟體包文件都安裝到何處(路徑)

rpm -qr 軟體名//檢視一下已安裝軟體所依賴的軟體包及檔案

rpm -qc 軟體名//檢視已安裝軟體的配置檔案

rpm -qa --queryformat 'installed on %\t%-%-%: %\n'  //查詢系統上安裝的rpm軟體包,並列出摘要

rpm -qa | sort | sed -n -e "s/\-[0-9].[0-9]*.*//p" | uniq  //列出系統上所有的rpm包,按字母排序並去除重複

基於Debian系統的軟體包管理

不同的軟體包管理是區分不同發行版的特徵之一。apt get是deb軟體包的管理工具之一,它是呼叫dpkg包管理程式。etc apt目錄下的sources.list配置檔案指向debian系統的軟體庫,系統會從該軟體庫安裝各種軟體包。sudo apt get download package name...

Linux之rpm軟體包管理 redhat

2年 ago mqzi rpm常用命令 1.rpm qa 查詢所安裝的所有rpm軟體包 rpm qa more rpm qa grep xx 2.rpm q 軟體包名 查詢軟體包是否安裝 rpm q 3.rpm qi 軟體包名 查詢軟體包資訊 4.rpm ql 軟體包名 查詢軟體包中的檔案 rpm ...

軟體包管理

軟體源 ete apt sources.list.d 軟體源索引 var lib apt lists 狀態資訊 var lib dpkg statustonny tonny ftt apt cache pkgnames wc l 軟體包的數目 tonny tonny ftt apt cache po...