Code:
yum update
Code:
yum search any-package
Code:
yum search httpd
Consultation of information. To consult the information contained in a package in individual:
Code:
yum info any-package
Code:
yum info httpd
Code:
yum install any-package
Code:
yum install gkrellm
Code:
yum remove any-package
Code:
yum remove gkrellm
Code:
available yum list|less
Code:
yum list installed|less
Code:
yum list updates|less
Yum leaves as result of its use heads and packages RPM stored in the interior of the directory located in the route /var/cache/yum/. Particularly the packages RPM that have settled can occupy much space and is by such reason agrees to eliminate them once no longer they have utility. Also it agrees to do the same with the old heads of packages that no longer are in the data base. In order to make the corresponding cleaning, the following thing can be executed:
Code:
yum clean all
Code:
yum groupinstall "groupname"
I hope this will help you understand how to use yum more effeciently. I did this for our newbies that may want to uninstall packages which is not mention in the fedora FAQ. For more info on yum go here: http://www.fedorafaq.org/#installsoftware
MORE:
One tip, you can use also joker-signs as * or ? e.g.
Code:
yum install gkrellm*
And to install/remove you have to be root! Not for searching.
To search in package names only, use yum list. This differs from search in that it's much faster, as it will search package names only, while yum search will search all the package info, including package description.
Code:
yum list something
Code:
yum list mozilla
Code:
yum provides filename
Code:
yum provides /usr/bin/mozilla
To get a list of packages updated/added to any of your repositories recently:
Code:
yum list recent
Code:
yum --enablerepo=reponame install packagename
Code:
yum --enablerepo=dag install j2re
Code:
yum grouplist
Code:
yum groupinstall "groupname"
Code:
yum groupinstall "GNOME Desktop Environment"
Code:
yum groupupdate "GNOME Desktop Environment"
And remember folks, you can always use -y to say yes to everything, and -C to use the cache only.
No comments:
Post a Comment