This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

修性不修命,萬劫陰靈難入聖; 修命不修性,猶有家財無主柄
Album | Blog | Comment | Profile | Control Panel
aquatower | 9 July,2009 23:59
Bookmark: HemiDemi MyShare Baidu Google Bookmarks Yahoo! My Web Del.icio.us Digg technorati furl Bookmark to:YouPush Bookmark to:你推我報

yum: installation and removal

1. #yum install [package] ----安裝套件, 如果己經安裝, 就不會再安裝

2. #yum groupinstall [packagegroup]

3, #yum remove [package]

4, #yum update [package] ----舊版會被移除, 安裝新的版本

5, #yum list [all | package_glob]

6. #yum info [package]

[root@server1 ~]# yum info evince
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
Name : evince
Arch : i386
Version: 0.6.0
Release: 8.el5
Size : 2.7 M
Repo : installed
Summary: Document viewer
Description:
evince is a GNOME-based document viewer.

7. #yum groupinfo [packagegroup]

[root@server1 ~]# yum groupinfo office
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process

Group: Office/Productivity
Description: The applications include office suites, PDF viewers, and more.
Default Packages:
evince
Optional Packages:
tetex-xdvi

8. #yum whatprovides [filename]

[root@server1 ~]# yum whatprovides /etc/hosts.allow
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
setup.noarch : A set of system configuration and setup files.
setup.noarch : A set of system configuration and setup files.

9. #youm grouplist

[root@server1 ~]# yum grouplist
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
Installed Groups:
Office/Productivity
Administration Tools
Editors
System Tools
Text-based Internet
Virtualization
Legacy Network Server
---略---


Comment

Trackback

Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.