Tutoriale Online

Tutoriale Online Invata Online cum se face si cum este corect. Learn Online How Must To Do !

Tutoriale Online How To use Yum

Posted by ascultradio on September 20, 2009

Yum is a very powerfull package manager. yum will resolve dependencies for you and makes installing applications a breeze. yum also searches, removes, and lists packages for you.
usage: yum [options]
options:
-h, –help show this help message and exit
-t, –tolerant be tolerant of errors
-C run entirely from cache, don’t update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
–version show Yum version and exit
–installroot=[path] set install root
–enablerepo=[repo] enable one or more repositories (wildcards allowed)
–disablerepo=[repo] disable one or more repositories (wildcards allowed)
–exclude=[package] exclude package(s) by name or glob
–obsoletes enable obsoletes processing during updates
–noplugins disable Yum plugins
From a first look this can look rather intimidating, but this is rather easy.
Examples:
• To seach for a application
Yum will search all your enabled repos and tell you where you can obtain the package from
yum search application_name
• Yum can list all available packages from your enabled repos and tell you where you can obtain the package from:
yum list available
• To find out more info about some package
yum info application_name
• Installing applications
Inastalling is as easy as
yum install application_name
• Listing rpms
yum can list installed rpms for you from the repos you have enabled
yum list extras
• Removing rpms
Yum can remove a application and the dependenciesit installed with tat application. it will not remove depenencies if another application installed needs them.
yum remove application_name
• Updating the system
Yum can update the system for you with out user interact if you want it to.
yum update
• Not sure if you have upates?
yum check-update
• Local install
downloaded a rpm and cannot install it with rpm because of dependencies?
yum localinstall /path/to/the/rpm
Happy yumming…

Incase you are using yum from behind a http proxy server then just open /etc/yum.conf by using
vi /etc/yum.conf
and add the following line
proxy=http://username:password@your-servers-ip-address:portnumber
where username is your username and password is your accounts password,your-servers-ip-address is the IP of your server and port number is the port through which you access your proxy server
note: please make sure that you are logged in as root while making these changes…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: