- 论坛徽章:
- 0
|
本文选自:http://www.centos.org/docs/5/html/yum/index.html
1、本文都是以tsclient为例,tsclient(Terminal Sever Client) 是一个远程登录xp的软件详见另篇
2、包名字组成:tsclient-0.132-4.i386.rpm
* Package name: tsclient
* Package name with version and release numbers: tsclient-0.132-4
* Package name with hardware architecture: tsclient.i386
3、安装、更新、删除:
1)、Installing New Software with yum
su -c 'yum install tsclient'
2)、To install the package group MySQL Database
su -c 'yum groupinstall "MySQL Database"'
3)、To update the tsclient package to the latest version
su -c 'yum update tsclient'
4)、To update all of the packages in the package group MySQL Database,
su -c 'yum groupupdate "MySQL Database"'
5)、To remove the tsclient package from your system
su -c 'yum remove tsclient'
6)、To remove all of the packages in the package group MySQL Database,
su -c 'yum groupremove "MySQL Database"'
7)、Manually Installing Software(安装已下载到本地的包)
su -c 'yum localinstall tsclient-0.132-4.i386.rpm'
4、Searching for Packages with yum(查找所需包)
To search for a specific package by name,
su -c 'yum list tsclient' su -c 'yum list tsclient-0.132'
search for all packages that relate to PalmPilots
su -c 'yum search PalmPilot'
To search for all packages that include files called libneon
su -c 'yum provides libneon'
To list all packages with names that begin with tsc, type:
su -c 'yum list tsc\*'
5、Updating Your System with yum(更新系统)
To perform a full system update
su -c 'yum update'
To activate automatic daily updates(设置自动更新)
su -c '/sbin/chkconfig --level 345 yum on; /sbin/service yum start'
最后说明本人安装的系统为CentOS 5.0
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/39174/showart_372719.html |
|