February 23, 2008

yum basics

The main syntax is :
yum [options] [command] [package ...]

To use yum, become root, and then you can use the following commands:

To see a list of available software:
yum list available

To install some software, you type:
yum install packagename

To update some software, you type:
yum update packagename

NOTE :If you leave out "packagename" yum will update all your software.

To see what updates are available, you can do:
yum check-update

To search for a package, you can do:
yum search word

To remove package already installed, you type:
yum remove packagename
or yum erase packagename

To list information about available packages or spsific Package.
yum list packagename
or yum list packagename*
or yum list word*


[OPTIONS]

-h, --help
Help; display a help message and then quit.

-y
Assume yes; assume that the answer to any question which would be asked is yes.
Configuration Option: assume-yes

-q, --quiet
Run without output. Note that you likely also want to use -y.

-v, --verbose
Run with a lot of debugging output.

--
Thanks
Your's Sincerely
Mohamed Nasr

2 comments:

Ahmed Gaber said...

what about debian?????????

Mohamed Nasr Sobeih said...

Actualy I'm using RPM based Liunx
like Fedora,RedHate ,SUSE

I did not use depian befor

but try apt-get tool it has agrument like the yum tool