LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-25-2013, 10:06 AM   #1
Jerico91
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Rep: Reputation: Disabled
Yum server not working after reboot


Hi Guys,

I've configured Yum server in my 32 bit RHEL6 system

I've configured it under
/etc/yum.repos.d/server.repo

There was an existing file under the /etc/yum.repos.d/ dir named redhat.repo which i deleted and created a new one named server.repo
However after rebooting the system redhat.repo file shows up again in that dir and Yum server is not working

I tried making yum server in redhat.repo and also under yum.conf also but still its the same and suggestions on above?
 
Old 09-25-2013, 10:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
making a yum server? You appear to be working with the yum *client* not a server at all. You say it's not working yet haven't told us anything at all about what's happening. Please provide useful details for us to work on.
 
Old 09-25-2013, 12:49 PM   #3
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 81
THats a good Catch @acid_kewpie ...

he is indeed working with client but not server...

also you(OP) should post what have you done to the yum.repos.d/ so that we could be able to analyze what happened and how ??
 
Old 09-25-2013, 03:09 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
Also to add
this is some version of RHEL6
six point what ?
6.0,6.1,6.2,6.3,6.4

RHEL 6.4 is the current

and seeing as this IS redhat and not CentOS or ScientificLinux ( or clearOS) you are paying for the required redhat support

have you asked redhat ?
you ARE paying them a bunch of cash every year to use redhat
you might want to use the paid for support you are paying for
 
Old 09-26-2013, 03:33 PM   #5
Jerico91
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
@acid_kewpie @SAbhi


I'm using yum server which I've configured through FTP
below is the conf file

/etc/yum.repos.d/server.repo

[server]
Name=server.repo
baseurl=file:///var/ftp/pub/Packages
gpgcheck=0
enabled=1

i can install packages through yum which i copied in
/var/ftp/pub/Packages

however it stops working after i reboot the system as the redhat.repo file which was in /etc/yum.repos.d/ automatically gets created and system gives this file priority and takes info from here..

P.S. - I'm not using any paid service of RHN.

Last edited by Jerico91; 09-26-2013 at 03:37 PM.
 
Old 09-26-2013, 05:37 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
Quote:

P.S. - I'm not using any paid service of RHN.
then DO NOT !!! use RHEL !!!!!

install the FREE rebuild CentOS 6.4 or ScientificLinux 6.4

Buy the required license or DO NOT USE IT !!!
 
Old 09-26-2013, 06:03 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by John VV View Post
then DO NOT !!! use RHEL !!!!!

install the FREE rebuild CentOS 6.4 or ScientificLinux 6.4

Buy the required license or DO NOT USE IT !!!
no no! MIGRATE! http://wiki.centos.org/HowTos/MigrationGuide
 
Old 09-27-2013, 02:00 AM   #8
Jerico91
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Fellas I'm student and was practising this server and was getting this error which configuring YUM

I'm not using RHel in real time enviroment

I was hoping i could get any help here in this forum o.O
 
Old 09-27-2013, 02:09 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
If you are a student and cannot or will not pay for RHEL, then use Centos, which is a free rebuild.
A Centos system should not overwrite your changes, although if its a VM, it depends if its set to (effectively) re-install, in which case ask the local admins for advice.
 
Old 09-27-2013, 03:04 AM   #10
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
Heyyy ,I think you are trying to create local yum server with client in the same pc.ok then...
1. Have you install createrepo package and configured it as yum server repository?
 
Old 09-27-2013, 03:26 AM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
create repo will be useless on RHEL without the required support contract and buying a "satellite "service

Now on CentOS or SL it would work , but if all one is using is the install dvd , you will have to ask " Why" .
 
Old 09-27-2013, 03:29 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
I'm pretty sure there's no mechanism that would modify the yum.repos.d contents automatically.
 
Old 09-27-2013, 04:11 AM   #13
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 81
you did'nt mentioned how you have set it up? To configure yum server certain yum packages are need to be installed along with createrepo to create necessary repo files, that generally done with createrepo -v [some-name].

better if you are testing or practising it then uninstall the packages for yum server and do the install again, follow some step by step guide(there are lot many if you google for it) and then come to us with your issues atleast then you would have some idea on how the things are working.
 
Old 09-27-2013, 04:36 AM   #14
Jerico91
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
@acid_kewpie @SAbhi

I'm using DVD as a yum repository which i copied to /var/ftp/pub/Packages

I deleted the file rhel-source.repo from /etc/yum.repos.d/ and created a new one server.repo like below (also tried to edit the existing one but after reboot the content vanishes)

[server]
Name=server.repo
baseurl=file:///var/ftp/pub/Packages
gpgcheck=0
enabled=1

and i created repo for that also. The yum is working fine
but when i reboot the system the file named rhel-source.repo
in /etc/yum.repos.d/ is created automatically which is taking priority over the file i have created i.e. server.repo
 
Old 09-27-2013, 04:58 AM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
then use the "installmedia.repo" on the dvd

and pop in the install dvd

but you can ONLY use that dvd
and no other online repos
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 update not working on Red Hat Enterprise Linux Server release 6.4 (Santiago) kevin777motorcycles Linux - Desktop 7 06-09-2015 01:10 PM
[SOLVED] Yum error after yum update and reboot jonaskellens Linux - Newbie 17 07-16-2013 11:05 AM
Yum update | reboot necessary? the_gripmaster Red Hat 7 06-20-2012 08:44 PM
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 05:15 PM
X server not working after yum update & font server problems snow93 Linux - Software 1 08-02-2006 06:26 AM

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

All times are GMT -5. The time now is 11:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration