山东建设工程执业证书查询网站,电商erp系统,织梦做的网站首页被篡改,我做的网页怎么是危险网站Yum配置文件位于/etc/yum.conf和/etc/yum.repos.d/CentOS-Base.repo目录下 使用yum时注意#xff1a;必须使用root身份来执行yum#xff1b;yum配置文件内的镜像站点必须能与自己进行网络连接#xff1b;镜像站点越近#xff0c;带宽越大越好#xff0c;方便下载。 [rootl… Yum配置文件位于/etc/yum.conf和/etc/yum.repos.d/CentOS-Base.repo目录下 使用yum时注意必须使用root身份来执行yumyum配置文件内的镜像站点必须能与自己进行网络连接镜像站点越近带宽越大越好方便下载。 [rootlocalhost ~]# yum [options] COMMAND 软件 List of Commands installInstall a package or packages on your system updateUpdate a package or packages on your system remove移出某个软件后跟软件名称 searchSearch package details for the given string 搜索某个软件或重要关键字 listList a package or groups of packages列出yum所管理的软件名称与版本类似于rpm –qa infoDisplay details about a package or group of packages类似于rpm –qai cleanRemove cached data 下载文件被放置在/var/cache/yum中可以使用clean清除。 check-updateCheck for available package updates GroupinfoDisplay details about a package group groupinstall Install the packages in a group on your system grouplistList available package groups groupremoveRemove the packages in a group from your system groupupdate升级整个软件群组 helpDisplay a helpful usage message DeplistList a packages dependencies 列出软件包的依赖关系在使用本地源软件包进行安装时可以查看依赖关系 Downgradedowngrade a package EraseRemove a package or packages from your system localinstallInstall a local RPM安装本地的rpm软件包 makecacheGenerate the metadata cache 生成数据缓存 providesFind what package provides the given value 找到包提供的给定值 reinstallreinstall a package 重装软件包 repolistDisplay the configured software repositories resolvedepDetermine which package provides the given dependency shellRun an interactive yum shell upgradeUpdate packages taking obsoletes into account options -yanswer yes for all questions当yum询问用户意见时主动回答yes不需由键盘输入 -installroot[path]set install root安装在其他的路径而不再当前目录树的架构中 -h --helpshow this help message and exit -t --tolerantbe tolerant of errors -Crun entirely from cache, dont update cache -c[config file]config file location -R [minutes] maximum command wait time -d [debug level] debugging output level -showduplicates show duplicates, in repos, in list/search commands -e [error level] error output level -q, --quiet quiet operation -v, --verbose verbose operation -version show Yum version and exit -enablerepo[repo] enable one or more repositories (wildcards allowed) -disablerepo[repo] disable one or more repositories (wildcards allowed) -x[package], --exclude[package]exclude package(s) by name or glob -disableexcludes[repo]disable exclude from main, for a repo or for everything -obsoletesenable obsoletes processing during updates -nopluginsdisable Yum plugins -nogpgcheckdisable gpg signature checking -disableplugin[plugin] disable plugins by name -enableplugin[plugin] enable plugins by name -skip-brokenskip packages with depsolving problems -colorCOLOR control whether color is used [rootlocalhost ~]# yum search gcc 查找主机上是否有gcc的相关软件如果有就会陈列出来。 [rootlocalhost ~]# yum info gcc 列出已安装的yum所管理的软件名称与版本 …………………………………………………………………… Namegcc Archi386 Version 4.1.2 Release 48.el5 Size9.6 M RepoinstalledSummary各类编译器C、C、Objective-C、Java, ... URLhttp://gcc.gnu.org LicenseGPL DescriptionThe gcc package contains the GNU Compiler Collection version 4.1.Youll need this package in order to compile c code …………………………………………………………………… 显示该软件版本名称数据大小软件出处等信息。需要注意summary和description的信息 可以依据yum search 软件名查找此软件的信息yum list软件名 列出此软件的版本和名称决定是否安装此软件。 安装之前使用rpm –q 软件名查看此软件是否安装如没有安装使用yum install 软件名 进行安装 使用yum可以主动处理好依赖关系下载好的软件一般都放置在/var/cache/yum中可以清除以节省磁盘空间。 [rootlocalhost ~]# yum clean packages #清除下载的软件包 [rootlocalhost ~]# yum -y update #手动系统更新 转载于:https://blog.51cto.com/navyaijm/816617