Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-08-2012, 03:13 AM
|
#1
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Rep: 
|
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 
|
|
|
09-08-2012, 07:48 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
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.
|
|
|
09-08-2012, 02:08 PM
|
#3
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Original Poster
Rep: 
|
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
~
~
~
~
|
|
|
|
09-08-2012, 03:02 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
And nothing in the /var/log/httpd/ logs?
|
|
|
09-08-2012, 04:04 PM
|
#5
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Original Poster
Rep: 
|
it dose not have any answer
Quote:
[root@LocalRepoS ~]# grep '/var/www' /var/log/httpd/error*log
[root@LocalRepoS ~]#
|
|
|
|
09-08-2012, 05:22 PM
|
#6
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,682
|
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
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 05:25 PM.
|
|
|
09-09-2012, 02:22 AM
|
#7
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Original Poster
Rep: 
|
Quote:
Originally Posted by John VV
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 ??????
look these code :
Quote:
[root@localrepos ~]# yum install libgcc
|
do you see the its mean i am root and i don't need
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 !
|
|
|
09-09-2012, 03:16 PM
|
#8
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Original Poster
Rep: 
|
any body knows the solution ?
|
|
|
09-09-2012, 04:54 PM
|
#9
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,682
|
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 04:59 PM.
|
|
|
09-09-2012, 08:03 PM
|
#10
|
Moderator
Registered: May 2001
Posts: 29,415
|
...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.
|
|
|
09-10-2012, 12:46 PM
|
#11
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Original Poster
Rep: 
|
Quote:
Originally Posted by unSpawn
...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 ! 
|
|
|
09-11-2012, 05:46 AM
|
#12
|
Moderator
Registered: May 2001
Posts: 29,415
|
Like I said before: check /var/log/audit/audit.log or /var/log/messages for related AVC messages.
|
|
|
All times are GMT -5. The time now is 10:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|