rh131筆記---unit2-package management
一,rpm package manager
1,安裝刪除
rpm -ivh kernel-version.arch.rpm 安裝
rpm -e kernel-oldversion 刪除
rpm -U 升級或安裝
rpm -F 只升級,如果軟體包不存在,不安裝。
2,查詢
rpm的查詢命令
rpm -qa list installed packages
rpm -qf filename shows owning package
rpm -qi nmap-3.70-1 顯示包的資訊
rpm -ql nmap-3.70-1 顯示這個包包含哪些檔案
如果系統中沒有安裝這個軟體包,查詢用如下命令:
rpm -qip package_file.i386.rpm
rpm -qlp package_file.i686.rpm
3,rpm verification
installed RPM File verification
rpm -V
rpm -Vp
rpm -Va
signature verification before package install
rpm --import RPM-GPG-KEY
rpm -K
匯入簽名資訊
[root@RedHat5 ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
二,yum
服務端,建立一個資料倉儲
1, mkdir xxx
2, 複製rpm包到xxx目錄
3, 安裝createrepo --> yum install createrepo
4, 執行:createrepo -v /xxx
此時會生成倉庫目錄到/xxx目錄下
5, 配置ftp或http服務讓其他伺服器可以訪問
6, 客戶端清除配置: yum clean dbcache
客戶端配置
客戶端需要安裝的包:
[root@RedHat5 pub]# which yum
/usr/bin/yum
[root@RedHat5 pub]# rpm -qf /usr/bin/yum
yum-3.0.1-5.el5
[root@RedHat5 pub]#
yum客戶端儲存在/etc/yum.repo.d/ 目錄下面,建立一個repo檔案,例如server.repo,檔案格式:
[server]
name = server
baseurl =
enabled=1
gpgcheck=0
客戶端使用
yum install package
yum remove package
yum update package
searching packages
yum search searchterm
yum list (all|availabled|extras|installed|recent|updates)
yum info packagename
searching files
yum whatprovides filename
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-1007266/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rh131筆記---unit1-system initialization筆記
- rh131筆記---unit3-kernel services筆記
- rh131筆記---unit4-system services筆記
- rh131筆記--unit6-filesystem managemen筆記
- rh131筆記---unit5-user administration.txt筆記
- ORACLE APP培訓筆記(2) -- Order ManagementOracleAPP筆記
- [筆記]Oracle9i Monitoring Automated SQL Execution Memory Management筆記OracleSQL
- 12. 記憶體管理(Memory Management)記憶體
- Flutter 記錄 - Flutter State Management (Redux)使用介紹FlutterRedux
- oracle segment space management and extent management幾則Oracle
- Memory Management in RustRust
- PostgreSQL Role ManagementSQL
- SQL management baseSQL
- Credit Management(SD)
- SQL Plan ManagementSQL
- 印象筆記 --- 方法分享筆記筆記
- Oracle Cluster Time ManagementOracle
- memory management unit (MMU)
- Linux Memory ManagementLinux
- SQL Plan Management(SPM)SQL
- dispute management and new ES
- Management on database linkDatabase
- Management of Remote Dependencies (252)REM
- Master Data Management UpdateAST
- Management of Materials With Shelf Life
- SQL Server 2012 記憶體管理 (memory management) 改進SQLServer記憶體
- 筆記筆記
- Stability Study with SAP Quality Management
- User Exits for WM (Warehouse Management)
- JMX-Java Management ExtensionsJava
- ASM(Automatic Storage Management)ASM
- Oracle Management Server Could Not Be StartedOracleServer
- SQL Plan Management介紹SQL
- SAP 批次管理(Batch management)BAT
- Axis2 Session ManagementSession
- Local and Remote Dependency Management (250)REM
- Oracle Lock Management Services (365)Oracle
- Oracle-Segment space managementOracle