LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-31-2009, 04:26 PM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
yum not working for me


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.

Thanks,
Ajit
 
Old 08-31-2009, 05:32 PM   #2
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint - Tara
Posts: 497

Rep: Reputation: 35
Dear Ajit

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.
 
Old 08-31-2009, 06:20 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.

basically you do the following:

yum update
yum install package_name
yum remove package_name

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.
 
Old 08-31-2009, 06:23 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
1 members found this post helpful.
Old 09-01-2009, 04:20 AM   #5
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Yum is not installed

Quote:
Originally Posted by chrism01 View Post
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

Ajit
 
Old 09-01-2009, 05:21 AM   #6
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
Quote:
Originally Posted by Ajit Gunge View Post
Hi,

Also how can I find what is a dependent RPM for a command without actually trying to install the rpm.

Thanks,
Ajit

Code:
rpm -qR myrpm
Also it appears yum is not installed, or not in your root path.
 
Old 09-01-2009, 06:14 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 09-01-2009, 09:58 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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).
 
Old 09-01-2009, 05:50 PM   #9
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Cool

Hi Ajit,

First thing check whether YUM packages are installed. You can do so by :
# rpm -qa yum*

Second thing is that you need to check that whether service for YUM (vsftpd) is started or not. You can do so by :
# chkconfig --list vsftpd

Otherwise, you need to reconfigure YUM, and I think that would resolve your problem.

Cheers,
Kapil
 
1 members found this post helpful.
Old 09-01-2009, 05:59 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Not sure about earlier versions but vsftpd does not need to turned on to use yum on RHEL/Centos5.X. vsftpd - Very Secure Ftp Daemon
 
Old 09-01-2009, 09:02 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 09-02-2009, 12:42 AM   #12
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Quote:
Originally Posted by chrism01 View Post
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

I am using a registered version.

Thanks,
Ajit
 
Old 09-02-2009, 12:53 AM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Just:
Quote:
yum install whatever
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.
 
Old 09-02-2009, 01:05 AM   #14
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Quote:
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.
 
Old 09-02-2009, 01:50 AM   #15
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Repository addition

Quote:
Originally Posted by linuxlover.chaitanya View Post
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.

Ajit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
Yum Not Working dijeshkk Linux - Newbie 7 03-16-2011 12:10 PM
Yum Not Working Help! drumky87 Linux - Software 5 09-27-2008 05:33 PM
yum not working saipraveen Linux - Newbie 4 08-22-2005 11:34 PM
Yum not working acidblue Fedora 3 10-24-2004 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration