LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum server problem (https://www.linuxquestions.org/questions/linux-newbie-8/yum-server-problem-897431/)

mlnm 08-15-2011 11:46 AM

yum server problem
 
i am not able to install package through yum, but when i do yum list its working , my yum takes repository from a ftp site these sre the details of /etc/yum.repos.d/rheldebuginfo file

name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
please provide urgent solution anybody.

nerak99 08-15-2011 12:42 PM

Well lets see what your OS is.

Is it Redhat enterprise Linux?
What is the contents of your yum.repos.d/<Base> file?

Are you on a network with a proxy or other blockage (such as a firewall) between you and the Internet.

mlnm 08-15-2011 02:02 PM

every thing is alright with firewalls but , i cant find noarch rpms in the ftp site, i only find debuginfo rpma

John VV 08-15-2011 03:39 PM

Quote:

baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server
a bit odd for a base url
it should look something like this ( for sl6 )
ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/


seeing as the only thing in that ftp page is one folder called " en"

is this a registered and licensed install of RHEL5.????? point what 1,2,3,4,5,6

also please post the FULL output of this
Code:

yum repolist all

mlnm 08-16-2011 01:54 AM

Dear john vv the website you provided is not working,when i do yum list it shows all the installed rpms ,but when iam trying to install new rpm and its dependencies ,yum searches and downloads only .debuginfo rpms.(for eg: i wanted to install httpd and its depends and it installed httpd.i386.el5.debuginfo.)I cant find .noarch rpms anywhere in the ftp.redhat.com site.Please provide a solution,urgent.....

John VV 08-16-2011 02:21 AM

that web address is an EXAMPLE for ScientificLinux6 !!!! -- please READ the name in that link!!!
and NOT RHEL5

your ftp is MISSING " ...... $releasever/$basearch/os/ "
that part

if need be call ( yes on the phone) your paid for red hat support
the support YOU DID buy with the REQUIRED license
for the server
https://www.redhat.com/apps/store/server/
for a desktop install
https://www.redhat.com/apps/store/desktop/

Quote:

when i do yum list it shows all the installed rpms
That is NOT the command i posted I DID NOT POST "YUM LIST" !!!!!
i posted
Code:

yum repolist all
REPOLIST !!!!!!!!!!!!!

it outputs a list of all on and off installed software repos .
contact your paid for red support
https://www.redhat.com/support/

"debuginfo rpms."
that output from "yum repolist all" would have shown that the debug source is turned on




Quote:

I cant find .noarch rpms anywhere in the ftp.redhat.com site.Please provide a solution,urgent.....
that is NOT urgent
contact red hat
buy a REQUIRED license
and activate your install - also required
and add rhn to the yum repository - also required



PS.
is this still the same laptop and the same old rhel5.0 ( current is 5.6)
https://www.linuxquestions.org/quest...roblem-889358/
or
the 5.4 install here
https://www.linuxquestions.org/quest...ocally-890007/

on July 1 it was 5.0 on July 5 it was 5.4
today it is 5.?

mlnm 08-16-2011 03:45 AM

thank u so much for all the help john vv ,i think that there is something wrong in baseurl would u plz post me how the base url exactly should look like.And what would $releasever/$basearch/os/ mean , bcoz normally i configure rheldebuginfo by puting server name or ip and /pub or complete path.

Please post the entire baseurl, if it doesnt work out then i will take rhn support.

John VV 08-16-2011 03:54 AM

Quote:

thank u so much for all the help john vv ,i think that there is something wrong in baseurl would u plz post me how the base url
1)
call red hat
2)
buy a license
3)
activate your install
the rhn repo will be turned on
https://access.redhat.com/subscriptions
click on "Active Subscriptions"
https://www.redhat.com/wapps/sso/log...criptions.html
sign up

mlnm 08-16-2011 09:22 AM

/etc/yum.repos.d/rheldebuginfo

name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/$releasever/$basearch/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
when i do yum repolist all nothing happens,out put is as follows:

usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase >

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)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
please help ...

nerak99 08-16-2011 11:19 AM

You have installed a Redhat version of Linux and you need a license.

You must

EITHER

1) Follow John's advice and activate your licensed version of RH5

OR

2) Install Centos which is likely to all of what you want out of the box.


All times are GMT -5. The time now is 08:38 AM.