![]() |
How to use YUM to install and uninstall packages
Introduction
To update the system applying the most recent corrective patches of security and to the operating system is not as difficult as many do not suppose, nor either must be a hell of dependencies between packages RPM as some others argue. The reality of the things is that it is much very simple and single requires of good bandwidth or very many patience. Next we presented/displayed the procedures to use yum and to make easily what some denominate "horrible, difficult and complicated ". Please note there are some changes that apply to Fedora Core 3. You will need to install GPG Key for yum in FC3. Creating Yum Repo's For FC3. To update system. Update of the system with all the dependencies that are necessary: Code:
yum updateCode:
yum search any-packageCode:
yum search httpdConsultation of information. To consult the information contained in a package in individual: Code:
yum info any-packageCode:
yum info httpdCode:
yum install any-packageCode:
yum install gkrellmCode:
yum remove any-packageCode:
yum remove gkrellmCode:
available yum list|lessCode:
yum list installed|lessCode:
yum list updates|lessYum 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 allCode:
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 |
Great howto.
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. |
Thanks for the tip. ;)
|
Here's more:
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 somethingCode:
yum list mozillaCode:
yum provides filenameCode:
yum provides /usr/bin/mozillaTo get a list of packages updated/added to any of your repositories recently: Code:
yum list recentCode:
yum --enablerepo=reponame install packagenameCode:
yum --enablerepo=dag install j2reCode:
yum grouplistCode:
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. |
Thanks again for the add-ons. :)
|
YUM is a delicious treat indeed. I never knew it had so much to it. Thanks imdeemvp and foolish! :)
|
Whoever gave that recommendation to the effect that "here are the only three repositories that yout need to get all the good add-ons", please repeat it here. I didn't find it by searching the forum messages.
|
Thanx for the kind to share this information :-)
regards, newbie |
got problem using yum
Dear All,
since i'm a newbie :-) I've got problem when using yum command. The error seems because of need to connect to www.redhat.fedora. is it suppoused to connect? |
ewinandar, to do your updates you need to have an internet connection...do you?
|
why do my yum requests always hang?
I have tried to yum specific files repeatedly and the progress bar just hangs: no error shown with things like 1 sec ETA. Distro is Fedora Core2 What is going on with this? thanks lon@athenet.net |
It happens to everyone not just use. I get that a lot and I have a dsl connection. If i see stay there for more then 10 mins. than I close terminal and restart yum update or whatever.
|
So i have to connect to internet in order to be able to use yum.
Thanx for the info. |
Yes, you have to be connected to keep your system up to date.
|
Hey imdeemvp and loniappleton, I also had same problem in fc2, but now in fc3 with the way they have yum working it is much faster and it rarley if ever hangs it is very nice I remeber with fc2 usally it always hung on the first try.
|
| All times are GMT +1. The time now is 01:43 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.