Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I want to run the yum command but there are lot of dependent rpms that its asking me to install.Is there a easy way that I can have the yum command without actually going on installing all the dependent files one by one.
Also how can I find what is a dependent RPM for a command without actually trying to install the rpm.
I assume you are using some version of Fedora? Exactly how are you trying to install yum? Usually it is already there in the packages. If it asks you to install dependent packages you need to do this or the package you are trying to install won't work.
as you are using YUM and you did not mention what distro you are running I like mazinoz will go on the deduction you are running a RH project or clone.
you do not need to install yum. the root level commands for yum are basic, but you can always type: yum --help for more options.
those are the 3 main yum commands you need to know right off the bat. use the --help (yes that is 2 '-') to get more options you can also man yum and read the man page for detailed help. although i tend to not like any of the man pages as they are NOT written for the people who need them but for those who already know way more about linux then you and I.
If you installled the GUI, you should find an Add/Remove SW item on the menus, as an alternate option.
yum is part of the default install, so it should be there. You'll need to be root (aka admin) user.
If you installled the GUI, you should find an Add/Remove SW item on the menus, as an alternate option.
yum is part of the default install, so it should be there. You'll need to be root (aka admin) user.
Hi,
I am not using the GUI version.I am running the command on a server it has RHEL.I also tried the command using root credentials but it gives me the following error
[root@kabru gunge]# yum
bash: yum: command not found
YUM is installed by default on RHEL4 onwards. All the versions earlier had up2date.
You will need to install all the packages that YUM depends on else it might not function to your requirements.
Another way which is a workaround is to install apt and rpmforge from dag. Only two rpms are needed to be installed. After installing apt you can use APT to install YUM.
yum was not on RHEL4 by default, it showed up on RHEL5. Centos has used yum for quite a while (C3?). There are tons of howtos out on the net for installing yum on RHEL4(and earlier).
FTP has nothing to do with yum.
As mentioned, up until ( & including v4), the default tool on RHEL was 'up2date'.
yum was introduced as of 5.0
Ajit; you need to tell us exactly what version you are running.
Try
cat /etc/redhat-release
and
uname -a
You may be able to backport yum to RHEL v4.
Also, if you are running RHEL, do you have a paid subscription with Redhat? If so you can ask them for support as well.
If not, (and you don't want to pay them), you'll have to switch to Centos (free version of RHEL; latest of both is 5.3 & includes yum).
RH will not allow you to update from their site unless you are registered & have paid.
FTP has nothing to do with yum.
As mentioned, up until ( & including v4), the default tool on RHEL was 'up2date'.
yum was introduced as of 5.0
Ajit; you need to tell us exactly what version you are running.
Try
cat /etc/redhat-release
and
uname -a
You may be able to backport yum to RHEL v4.
Also, if you are running RHEL, do you have a paid subscription with Redhat? If so you can ask them for support as well.
If not, (and you don't want to pay them), you'll have to switch to Centos (free version of RHEL; latest of both is 5.3 & includes yum).
RH will not allow you to update from their site unless you are registered & have paid.
Hi Chris,
These my respective outputs of the commands that you suggested.
cat /etc/redhat-release
o/p==>Red Hat Enterprise Linux Server release 5.2 (Tikanga)
uname -a
Linux kabru 2.6.18-92.1.13.AV01PAE #1 SMP Thu Oct 30 12:37:20 MDT 2008 i686 i686 i386 GNU/Linux
It will list out all the stuff it will install as dependencies. If you do not like what it is trying to install (for whatever reason) just tell it no, otherwise hit yes and install it.
Just so you understand, the package you are trying to install will not run unless all the dependencies are met.
cat /etc/redhat-release
o/p==>Red Hat Enterprise Linux Server release 5.2 (Tikanga)
This RHEL5.2 should have yum already installed. And if you have RHN registration it should work without changing the repositories. If you have not paid RH for support then you can add CentOS5.2 repositories for your use.
This RHEL5.2 should have yum already installed. And if you have RHN registration it should work without changing the repositories. If you have not paid RH for support then you can add CentOS5.2 repositories for your use.
Chaitanaya,
U suggest me to add the Cent0s5.2 repositories.Can you point me to some documetation which I can follow to add the repository.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.