LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 09-08-2012, 04:13 AM   #1
callmanager
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
Local repository on centos 5.4


hi every one , i want to create a local repositry server for my network
because i do not want user's on linux client use internet bandwidth

now i have a problem : i cant install any thing from repository
but i can download package from repo center by "wget" and install the package by "rpm -i"

but i cant install by "yum"

this is all of my command :
Quote:
4 mkdir /pkg
5 mkdir /pkg/gpg
6 ls
7 ls /
8 mount /dev/dvd /mnt
9 cp /mnt/centos/* /pkg
10 cp /mnt/rpm-gpg-key* /pkg/gpg
11 ls /pkg/gpg
20 yum install httpd createrepo
21 /etc/init.d/httpd start
22 chkconfig httpd on
23 mkdir /pkg/centos
24 createrepo /pkg/centos
25 ln -s /pkg /var/www/html
26 mkdir /root/old-yum-repo
27 mv /etc/yum.repos.d/* /root/old/yum-repo/
31 vim /etc/yum.repos.d/centos.repo :=>


[base]
name=centos repository
baseurl=http://10.0.8.104/pkg/centos
gpgcheck=1
gpgkey=http://10.0.8.104/pkg/gpg/rpm-gpg-key-centos
36 yum install gcc
37 yum info


AND when i enter the command : "yum install gcc " i get this reflex from linux :

Quote:
[root@localrepos ~]# yum install libgcc
loaded plugins: Fastestmirror
loading mirror speeds from cached hostfile
setting up install process
nothing to do
[root@localrepos ~]#

please help me to solve this problem, my friends
 
Old 09-08-2012, 08:48 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Start by showing us which repo's are enabled:
Code:
\yum -C -v -d10 --noplugins repolist enabled 2>&1 | tee /tmp/yum.tee
then run 'yum' with enough information to show what's actually happening:
Code:
\yum -v -d10 --noplugins install libgcc 2>&1 | tee -a /tmp/yum.tee
then attach "/tmp/yum.tee" as plain text and finally show HTTP daemon error log (if any):
Code:
grep '/var/www' /var/log/httpd/error*log
That should get you started diagnosing things.
 
Old 09-08-2012, 03:08 PM   #3
callmanager
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
this is reactions :
Quote:
[root@LocalRepoS ~]# yum -C -v -d10 --noplugins repolist enabled 2>&1 | tee /tmp/yum.tee
Config time: 0.036
Yum Version: 3.2.22
Repo-id : base
Repo-name : CentOS Repository
Repo-status : enabled:
Repo-updated: Sun Aug 19 18:41:00 2012
Repo-pkgs : 0
Repo-size : 0
Repo-baseurl: http://10.0.8.104/pkg/CentOS

repolist: 0
Quote:
[root@LocalRepoS ~]# yum -v -d10 --noplugins install libgcc 2>&1 | tee -a /tmp/yum.tee
Config time: 0.034
Yum Version: 3.2.22
Setting up Package Sacks
rpmdb time: 0.000
Setting up Install Process
Setting up Package Sacks
Checking for virtual provide or file-provide for libgcc
Searching pkgSack for dep: libgcc
Setting up Package Sacks
Nothing to do
[root@LocalRepoS ~]#
Quote:
[root@LocalRepoS ~]# vim /tmp/yum.tee






Yum Version: 3.2.22
Repo-id : base
Repo-name : CentOS Repository
Repo-status : enabled:
Repo-updated: Sun Aug 19 18:41:00 2012
Repo-pkgs : 0
Repo-size : 0
Repo-baseurl: http://10.0.8.104/pkg/CentOS

repolist: 0
Config time: 0.034
Yum Version: 3.2.22
Setting up Package Sacks
rpmdb time: 0.000
Setting up Install Process
Setting up Package Sacks
Checking for virtual provide or file-provide for libgcc
Searching pkgSack for dep: libgcc
Setting up Package Sacks
Nothing to do
~
~
~
~
 
Old 09-08-2012, 04:02 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
And nothing in the /var/log/httpd/ logs?
 
Old 09-08-2012, 05:04 PM   #5
callmanager
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
it dose not have any answer
Quote:
[root@LocalRepoS ~]# grep '/var/www' /var/log/httpd/error*log
[root@LocalRepoS ~]#
 
Old 09-08-2012, 06:22 PM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 13,485

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
you are aware that cent5.4 is unsupported
there will never be any updates
it went end of life when CentOS 5.5 came out in "2010-05-1"
so 5.4 has not had any security updates in 2+ years
it is HIGHLY advised you upgrade the the current version in the older 5 series
CentOS 5.8

Quote:
yum install libgcc
that is the wrong command
you will need a lot more than ONLY gcc

now gcc "should" pull from a FULL ( as in the LAST centos5.4 repo update) the required files
Code:
su -
yum install gcc
but again 5.4 is dead
only 5.8 is supported

normally i would do a groupinstall
Code:
su -
yum grouplist 
-- a long output of the groups --
yum groupinstall "Development Tools" "Development Librarys"
and maybe add in the "Gnome Development Libarys"

but trying to do this for 5.4 when there are no existing repos ????
this IS the centos 5.4 mirror
http://centos.arcticnetwork.ca/5.4/
and the readme says
Quote:
This directory (and version of CentOS) is depreciated. For normal users,
you should use /5/ and not /5.4/ in your path. Please see this FAQ
concerning the CentOS release scheme:

http://www.centos.org/modules/smartfaq/faq.php?faqid=34

If you know what you are doing, and absolutely want to remain at the 5.4
level, go to http://vault.centos.org/ for packages. Please keep in mind that 5.4 no longer gets any updates

you will need to manually get files from "http://vault.centos.org/"
or create a repo file for that location

Last edited by John VV; 09-08-2012 at 06:25 PM.
 
Old 09-09-2012, 03:22 AM   #7
callmanager
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
you are aware that cent5.4 is unsupported
there will never be any updates
it went end of life when CentOS 5.5 came out in "2010-05-1"
so 5.4 has not had any security updates in 2+ years
it is HIGHLY advised you upgrade the the current version in the older 5 series
CentOS 5.8


that is the wrong command
you will need a lot more than ONLY gcc

now gcc "should" pull from a FULL ( as in the LAST centos5.4 repo update) the required files
Code:
su -
yum install gcc
but again 5.4 is dead
only 5.8 is supported

normally i would do a groupinstall
Code:
su -
yum grouplist 
-- a long output of the groups --
yum groupinstall "Development Tools" "Development Librarys"
and maybe add in the "Gnome Development Libarys"

but trying to do this for 5.4 when there are no existing repos ????
this IS the centos 5.4 mirror
http://centos.arcticnetwork.ca/5.4/
and the readme says



you will need to manually get files from "http://vault.centos.org/"
or create a repo file for that location
hey dude are you sure you understand my question ?
i know centos 5.4 has not support , and i do not need the support i do not the
if you look my code on first post you will see i am copy the package from the dvd
to a directory of my centos ,,,,, if you dont know some thing , pleas dont speak about that

and one more thing
you said that i have to use this code:
Quote:
Code:
su -
yum grouplist 
-- a long output of the groups --
yum groupinstall "Development Tools" "Development Librarys"
when i am root , what should i use
Quote:
SU
??????


look these code :
Quote:
[root@localrepos ~]# yum install libgcc
do you see the
Quote:
#
its mean i am root and i don't need
Quote:
su





if any body exist in this from ,,, that he has know my problem plz help me , and other people that know any thing about it
pleas do not send spam !
 
Old 09-09-2012, 04:16 PM   #8
callmanager
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
any body knows the solution ?
 
Old 09-09-2012, 05:54 PM   #9
John VV
Guru
 
Registered: Aug 2005
Posts: 13,485

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
pop in the dvd and use THAT as a repo

( turn on the "install media.repo , it is on the dvd)

but you will have some issues

you might as well just do a FULL install from the dvd and not try to pull things off the dvd
Quote:
if any body exist in this from ,,, that he has know my problem plz help me , and other people that know any thing about it
pleas do not send spam !
as PER forum rules
DO NOT use "text speak"
plz is NOT how " Please" is spelled

"pleas do not send spam"
that is not spam

you do not install "libgcc"
you install gcc and that should pull ALL the requirements for it out of the repo

Last edited by John VV; 09-09-2012 at 05:59 PM.
 
Old 09-09-2012, 09:03 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
...additionally the
Code:
ln -s /pkg /var/www/html
might have been a problem were SElinux enabled and didn't like the context of /pkg. Checking /var/log/audit/audit.log or /var/log/messages for related AVC's should have shown and indeed using the CEntOS-5.8 or CEntOS-6.3 DVD is a preferable option.
 
Old 09-10-2012, 01:46 PM   #11
callmanager
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
...additionally the
Code:
ln -s /pkg /var/www/html
might have been a problem were SElinux enabled and didn't like the context of /pkg. Checking /var/log/audit/audit.log or /var/log/messages for related AVC's should have shown and indeed using the CEntOS-5.8 or CEntOS-6.3 DVD is a preferable option.

hey dude , i am do it , at line 25 on first post :?
Quote:
25 ln -s /pkg /var/www/html
------------------------------------------------------------
it still have problem , and do not work !
 
Old 09-11-2012, 06:46 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Like I said before: check /var/log/audit/audit.log or /var/log/messages for related AVC messages.
 
  


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
using up2date with local repository bajones Linux - Newbie 1 09-16-2008 04:23 PM
local repository abd_bela Solaris / OpenSolaris 1 01-12-2008 06:23 PM
LXer: Creating A Local Yum Repository (CentOS) LXer Syndicated Linux News 0 06-18-2007 08:01 AM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 11:43 AM
Up2date and local repository Deviathan Red Hat 5 12-14-2006 09:57 AM


All times are GMT -5. The time now is 08:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration