LinuxQuestions.org
Visit Jeremy's Blog.
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 12-19-2012, 12:46 AM   #1
sasaditya
Member
 
Registered: Dec 2012
Posts: 34

Rep: Reputation: Disabled
Exclamation error in my yum list


sir,
by searching i had tried to install yum locally in my laptop via these following process.
the way i configure yum like,,

[root@adi~]#mount /dev/dvd /mnt
[root@adi~]#cd /mnt
[root@adi mnt]#cd Packages

[root@adi Packages]#rpm -ivh vsftpd*.rpm
[root@adi Packages]#rpm -ivh deltarpm*.rpm
[root@adi Packages]#rpm -ivh python-deltarpm*.rpm
[root@adi Packages]#rpm -ivh createrepo*.rpm


[root@adi ~]#mkdir /var/ftp/pub/server
[root@adi ~]#cp -rv /mnt/* /var/ftp/pub/server/
[root@adi ~]#createrepo –g /var/ftp/pub/server/repodata/repomd.xml /var/ftp/pub/server/Packages/
[root@adi ~]#cd /etc/yum.repos.d/
[root@adi yum.repos.d]#vi Centos-Base.repo
[base]
name=Centos-$releaserver-Base
mirrorlist=http://mirrorlist.centosorg/?release=$releaserver&arch=$basearc
baseurl=ftp://192.168.0.1/var/ftp/pub/server/Packages/repodata/repomd.xml
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Centos-6

:wq(saved)

[root@adi yum.repos.d]#cd /
[root@adi ~]#service vsftpd restart
[root@adi ~]#chkconfig vsftpd on
[root@adi ~]#chkconfig --list
[root@adi ~]#yum clean all
[root@adi ~]#yum list

(at this point i got an Error message.like)

Loaded plugins:fastestmirror, refresh-packagekit,security

Loading mirror speeds from cached hostfile

ftp://192.168.0.1/var/ftp/pub/server...ata/repomd.xml

[Errno 14]pycurl ERROR 9-"server denied you to change to the given directoty"

Trying other mirror

Error:cannot retrive repository metadat(repomd.xml) for repository:base please verify its path and try again

(at here i was stuck.i dont know where i made a mistake.plz to help me out from this situation sir..)

Last edited by sasaditya; 12-19-2012 at 05:51 AM.
 
Old 12-19-2012, 02:02 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,239

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
can you please explain exactly what it is you " want to do"
and what it is exactly you "are doing" ????

it almost looks like you are trying to use the install dvd as a re[o OFFLINE -- with NO internet connection
 
Old 12-19-2012, 02:51 AM   #3
sasaditya
Member
 
Registered: Dec 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
yes sir,im trying to install yum via installed dvd with out any internet conections.because im not effort for that.please help me...
 
Old 12-19-2012, 03:43 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,239

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Quote:
im trying to install yum via installed dvd
yum IS installed BY DEFAULT
there is NO need to install it

it is installed


but
I think you are mixing a few things up
Linux is VERY different then MS Windows
-- you WILL need to relearn a few things .


Linux and OFF-LINE do not mix well
Yes one can do it ?? But it is not recommended ( sometimes needs DO require it so ...)

you might want to google
"local repo" +Linux +cent
or
have a look at the Cent wiki
for creating a "local repo"
http://wiki.centos.org/

PS.
But keep in mind that Cent ASSUMES that YOU ARE a linux system admin
CentOS is a Rebuild od RHEL ( Red Hat Enterprise Linux) and as such uses the Red Hat documents
https://access.redhat.com/knowledge/...erprise_Linux/

RHEL nor the FREE rebuilds ( CentOS 6.3 , ScientificLinux 6.3 ) are desinged for " the NEW to linux user"
RHEL is a SERVER CLASS operating system ( with Desktop use )

It is not easy to learn
 
1 members found this post helpful.
Old 12-19-2012, 05:10 AM   #5
sasaditya
Member
 
Registered: Dec 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
thank you for your valuable advice to me.i had gone through that local repo + linux + cent.i came to know that what i had done.in /etc/yum.repos.d/centos-base.repo i configured the baseurl=ftp://192.168.0.1/var/ftp/pub/server/Packages/repodata/repomd.xml in my own system, where i should do this in client pc.ok.

if i want to configure that repodata in my own pc,then the baseurl=file:///var/ftp/pub/server/Packages/repodata/repomd.xml

i had tried this path too but,the results are baseurl is not found..
 
Old 12-19-2012, 05:30 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
I have some doubt about one of the commands you wrote down in the OP:
Code:
cp /mnt /var/ftp/pub/server/
this should have given an error, since you tried to copy a directory without recursion. Moreover the resulting repository should have been in /var/ftp/pub/server/mnt/ in that case. Please, can you post the output of the following command?
Code:
ls -l /var/ftp/pub/server/
Please, use [CODE][/CODE] tags to embed lines of code.
 
Old 12-19-2012, 05:51 AM   #7
sasaditya
Member
 
Registered: Dec 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
sorry i had forget to write that.it is so difficult to write the syntax via mobile phone to post.
it is like

#cp -rv /mnt/* /var/ftp/pub/server/
 
Old 12-19-2012, 08:15 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Actually, a Centos 6.x install should provide the CentOS-Media.repo file in /etc/yum.repos.d, which contains the following
Code:
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
#  CentOS-6.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c6-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c6-media [command]
 
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 
Old 12-19-2012, 11:56 PM   #9
sasaditya
Member
 
Registered: Dec 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
hello sir,im so happy for your reply.and i came to know that via a /media we can install..im very much happy.yesterday night,i had tried that.it working healthy.if u r hear then u can see my happiness.and https://access.redhat.com/knowledge/...erprise_Linux/ with help of this link i came to know more things.im not that powerful to effort an internet connection.so i had joined in a internet cafe for part time to discuss with you and take suggestions.thank you...

i had changed the baseurl=file:///var/ftp/pub/server/Packages
after that it is running good.....thanks to all of u for your valuable time.....
 
  


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
CRITICAL:yum.cli Config Error yum.conf in RHEL 6.0 chunrima Linux - Software 2 12-09-2010 07:19 PM
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 05:15 PM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 06:48 AM
yum list command bradlumb Linux - Newbie 1 04-16-2006 06:29 AM
viewing all of yum list ben_build#2.1.0 Fedora 2 05-18-2004 11:06 AM

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

All times are GMT -5. The time now is 05:17 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