国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
yum command: Update / Install Packages Under ...

yum command: Update / Install Packages Under Redhat Enterprise / CentOS Linux Version 5.x

by Vivek Gite · 21 comments

How do I use yum command to update and patch my Red hat Enterprise Linux / CentOS Linux version 5.x server via RHN / Internet? Can I use up2date command under RHEL 5?

up2date command was part of RHEL v4.x or older version. You need to use yum command to update and patch the system using RHN or Internet. Use yum command to install critical and non-critical security updates as well as binary packages. Login as the root user to install and update the system.

Task: Register my system with RHN

To register your system with RHN type the following command and just follow on screen instructions (CentOS user skip to next step):
# rhn_register

WARNING! These examples only works with RHEL / CentOS Linux version 5.x or above. For RHEL 4.x and older version use up2date command.

Task: Display list of updated software (security fix)

Type the following command at shell prompt:
# yum list updates

Task: Patch up system by applying all updates

To download and install all updates type the following command:
# yum update

Task: List all installed packages

List all installed packages, enter:
# rpm -qa
# yum list installed

Find out if httpd package installed or not, enter:
# rpm -qa | grep httpd*
# yum list installed httpd

Task: Check for and update specified packages

# yum update {package-name-1}
To check for and update httpd package, enter:
# yum update httpd

Task: Search for packages by name

Search httpd and all matching perl packages, enter:
# yum list {package-name}
# yum list {regex}
# yum list httpd
# yum list perl*

Sample output:

Loading "installonlyn" pluginLoading "security" pluginSetting up repositoriesReading repository metadata in from local filesInstalled Packagesperl.i386                                4:5.8.8-10.el5_0.2     installedperl-Archive-Tar.noarch                  1.30-1.fc6             installedperl-BSD-Resource.i386                   1.28-1.fc6.1           installedperl-Compress-Zlib.i386                  1.42-1.fc6             installedperl-DBD-MySQL.i386                      3.0007-1.fc6           installedperl-DBI.i386                            1.52-1.fc6             installedperl-Digest-HMAC.noarch                  1.01-15                installedperl-Digest-SHA1.i386                    2.11-1.2.1             installedperl-HTML-Parser.i386                    3.55-1.fc6             installed..............perl-libxml-perl.noarch                  0.08-1.2.1             baseperl-suidperl.i386                       4:5.8.8-10.el5_0.2     updates 

Task: Install the specified packages [ RPM(s) ]

Install package called httpd:
# yum install {package-name-1} {package-name-2}
# yum install httpd

Task: Remove / Uninstall the specified packages [ RPM(s) ]

Remove package called httpd, enter:
# yum remove {package-name-1} {package-name-2}
# yum remove httpd

Task: Display the list of available packages

# yum list all

Task: Display list of group software

Type the following command:
# yum grouplist
Output:

Installed Groups:Engineering and ScientificMySQL DatabaseEditorsSystem ToolsText-based InternetLegacy Network ServerDNS Name ServerDialup Networking SupportFTP ServerNetwork ServersLegacy Software DevelopmentLegacy Software SupportDevelopment LibrariesGraphicsWeb ServerRubyPrinting SupportMail ServerServer Configuration ToolsPostgreSQL DatabaseAvailable Groups:Office/ProductivityAdministration ToolsBeagleDevelopment ToolsGNOME Software DevelopmentX Software DevelopmentVirtualizationGNOME Desktop EnvironmentAuthoring and PublishingMonoGames and EntertainmentXFCE-4.4TomboyJavaJava DevelopmentEmacsX Window SystemWindows File ServerKDE Software DevelopmentKDE (K Desktop Environment)HordeSound and VideoFreeNX and NXNews ServerYum UtilitiesGraphical InternetDone

Task: Install all the default packages by group

Install all 'Development Tools' group packages, enter:
# yum groupinstall "Development Tools"

Task: Update all the default packages by group

Update all 'Development Tools' group packages, enter:
# yum groupupdate "Development Tools"

Task: Remove all packages in a group

Remove all 'Development Tools' group packages, enter:
# yum groupremove "Development Tools"

Task: Install particular architecture package

If you are using 64 bit RHEL version it is possible to install 32 packages:
# yum install {package-name}.{architecture}
# yum install mysql.i386

Task: Display packages not installed via official RHN subscribed repos

Show all packages not available via subscribed channels or repositories i.e show packages installed via other repos:
# yum list extras
Sample output:

Loading "installonlyn" pluginLoading "security" pluginSetting up repositoriesReading repository metadata in from local filesExtra PackagesDenyHosts.noarch                         2.6-python2.4          installedVMwareTools.i386                         6532-44356             installedjohn.i386                                1.7.0.2-3.el5.rf       installedkernel.i686                              2.6.18-8.1.15.el5      installedkernel-devel.i686                        2.6.18-8.1.15.el5      installedlighttpd.i386                            1.4.18-1.el5.rf        installedlighttpd-fastcgi.i386                    1.4.18-1.el5.rf        installedpsad.i386                                2.1-1                  installedrssh.i386                                2.3.2-1.2.el5.rf       installed

Task: Display what package provides the file

You can easily find out what RPM package provides the file. For example find out what provides the /etc/passwd file:
# yum whatprovides /etc/passwd
Sample output:

Loading "installonlyn" pluginLoading "security" pluginSetting up repositoriesReading repository metadata in from local filessetup.noarch                             2.5.58-1.el5           baseMatched from:/etc/passwdsetup.noarch                             2.5.58-1.el5           installedMatched from:/etc/passwd

You can use same command to list packages that satisfy dependencies:
# yum whatprovides {dependency-1} {dependency-2}
Refer yum command man page for more information:
# man yum

本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Linux:How to use Yum to manage software package in linux(two) ? IT Sprite
Ubuntu下apt的一些用法及和yum的比較
linux yum 命令 | 菜鳥教程
2.4 Using Yum from the Command Line
Installing AsteriskNOW
Install Software From Source Code on Linux
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服