预览加载中,请您耐心等待几秒...
1/6
2/6
3/6
4/6
5/6
6/6

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

Linux系统中yum命令的知识详解Linux系统中yum命令的知识详解yum(YellowdogUpdater,Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。yum提供了查找、安装、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。yum语法yum[options][command][package...]options:可选,选项包括-h(帮助),-y(当安装过程提示选择全部为"yes"),-q(不显示安装的过程)等等。command:要进行的操作。package操作的对象。yum常用命令1.列出所有可更新的软件清单命令:yumcheck-update2.更新所有软件命令:yumupdate3.仅安装指定的软件命令:yuminstall4.仅更新指定的软件命令:yumupdate5.列出所有可安裝的软件清单命令:yumlist6.删除软件包命令:yumremove7.查找软件包命令:yumsearch8.清除缓存命令:yumcleanpackages:清除缓存目录下的软件包yumcleanheaders:清除缓存目录下的headersyumcleanoldheaders:清除缓存目录下旧的headersyumclean,yumcleanall(=yumcleanpackages;yumcleanoldheaders):清除缓存目录下的软件包及旧的headersLinux系统中yum命令的具体实例实例1安装pam-devel[root@www~]#yuminstallpam-develSettingupInstallProcessParsingpackageinstallargumentsResolvingDependencies-->Runningtransactioncheck--->Packagepam-devel.i3860:0.99.6.2-4.el5settobeupdated-->ProcessingDependency:pam=0.99.6.2-4.el5forpackage:pam-devel-->Runningtransactioncheck--->Packagepam.i3860:0.99.6.2-4.el5settobeupdatedfilelists.xml.gz100%|=========================|1.6MB00:05filelists.xml.gz100%|=========================|138kB00:00->FinishedDependencyResolution……(省略)实例2移除pam-devel[root@www~]#yumremovepam-develSettingupRemoveProcessResolvingDependencies-->Runningtransactioncheck--->Packagepam-devel.i3860:0.99.6.2-4.el5settobeerased-->FinishedDependencyResolutionDependenciesResolved=============================================================================PackageArchVersionRepositorySize=============================================================================Removing:pam-develi3860.99.6.2-4.el5installed495kTransactionSummary=============================================================================Install0Package(s)Update0Package(s)Remove1Package(s)Isthisok[y/N]:yDownloadingPackages:Runningrpm_check_debugRunningTransactionTestFinishedTransactionTestTransactionTestSucceededRunningTransactionErasing:pam-devel#########################[1/1]Removed:pam