Linux - ServerThis 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.
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.
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 :=>
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 ~]#
[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
~
~
~
~
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:
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
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 !
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.
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 !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.