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 05-24-2013, 07:44 PM   #16
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833

Sorry, I missed that createrepo is in the Universe repository, which is not enabled by default in Ubuntu. Assuming that you use Ubuntu 12.04 LTS (codename precise pangolin) you have to add this line to the file /etc/apt/sources.list:
Code:
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
After that run
Code:
sudo apt-get update
and try again to install createrepo.
 
Old 05-25-2013, 04:48 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Ubuntu 12.04 ( 12.10 ) : The package 'createrepo' is available :
http://packages.ubuntu.com/precise/createrepo

The install command is :
$ sudo apt-get update && sudo apt-get install createrepo
 
Old 05-28-2013, 02:01 PM   #18
tewtechie25
LQ Newbie
 
Registered: Apr 2013
Location: US
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks.. I am using Ubuntu12.04.1 LTS and the /etc/apt/sources.list already contains the line deb http://us.archive.ubuntu.com/ubuntu/ precise universe
When I did a sudo apt-get update, it gives a list of things it failed to fetch .(Since I am workig on a VM console, I coud't copy the whole text.)Its of like the one below
W: Failed to fetch to http://us.archive.ubuntu.com/dists/p...Translation-en Unable to connect to us.archive.ubuntu.com:http [IP: 91.189.91.15 80]

I disabled the ufw firewall and still the result is the same. I have a valid ip too.
Please advice.

Last edited by tewtechie25; 05-28-2013 at 02:39 PM.
 
Old 05-28-2013, 02:29 PM   #19
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by tewtechie25;4960700[...
[IP: 91.189.91.15.80][...]
Shouldn't that be IP: 91.189.91.15:80?
 
Old 05-28-2013, 02:38 PM   #20
tewtechie25
LQ Newbie
 
Registered: Apr 2013
Location: US
Posts: 15

Original Poster
Rep: Reputation: Disabled
Sorry, that was a typo. It came like this IP: 91.189.91.15 80

I am getting links like the following upon googling
http://ubuntuforums.org/archive/inde...t-1596426.html
http://askubuntu.com/questions/13593...to-any-sources

So I am thinking whether to execute the below steps to disable proxy:
unset http_proxy;
unset ftp_proxy;


My /etc/resolv.conf is as follows:

nameserver 127.0.0.1
search cld.local


cld.local is our lab, so the search is limited over there?
 
Old 05-28-2013, 03:17 PM   #21
tewtechie25
LQ Newbie
 
Registered: Apr 2013
Location: US
Posts: 15

Original Poster
Rep: Reputation: Disabled
Changed the proxy values and createrepo got installed :-)
 
Old 05-28-2013, 06:59 PM   #22
tewtechie25
LQ Newbie
 
Registered: Apr 2013
Location: US
Posts: 15

Original Poster
Rep: Reputation: Disabled
Oops I crossed the deadline to finish the task :-(
I did createrepo . from inside my repository and the repodata folder got created with its files inside.
But I am not seeing any file related to yum like /etc/yum.repos/ inside my / directory.
Also I couldn't find any relevant *.conf file.

But when I searched for *repo, the results are like this:
/usr/bin/createrepo
/usr/bin/modifyrepo
/usr/share/doc/createrepo
/usr/share/createrepo


They donot contain configuration to repo.
I checked /usr/bin/modifyrepo listed above
It just runs a script
exec /usr/share/createrepo/modifyrepo.py "$@"


The modifyrepo.py has comments that it is used to insert arbitrary metadata in to rpm repository.


Now I am confused, How to set the repository path, like we do in /etc/yum.repos.d/*.repo of RHEL

Last edited by tewtechie25; 05-28-2013 at 07:06 PM.
 
Old 05-28-2013, 07:22 PM   #23
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
The repository path has to be set on the client machines, not on the server.
 
Old 05-29-2013, 02:20 PM   #24
tewtechie25
LQ Newbie
 
Registered: Apr 2013
Location: US
Posts: 15

Original Poster
Rep: Reputation: Disabled
IT IS WORKING !!!!!
Being a newbie, I got very good support from you guys and I will share whatever I learn, back to this community.
I should thank every one who helped me, especially TobiSGD and PTredholme..
I will close the thread in a day or two after confirming things are going good.

BTW, I am trying to see how can I get the repository updated whenever a new package is added to the repo.
From google, I saw about 'yum clean expire-cache' or 'yum clean all' at client side does it.

Another optioin was adding following line in /etc/yum.conf on Yum clients:
metadata_expire=1m

Could you please suggest which one should be ideal? And is there some thing that can be done at server side itself ?
(Assuming server immediately comes to know about any change made in repo automatically)

Last edited by tewtechie25; 05-29-2013 at 02:25 PM.
 
Old 05-29-2013, 02:23 PM   #25
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Sorry, but since I don't use RPM distros that is beyond my knowledge.
 
  


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 Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 11:55 PM
yum repository vidyasagar6 Linux - Server 1 02-01-2013 03:23 AM
how to yum repository parkarnoor Linux - Newbie 1 01-17-2011 11:52 AM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 08:23 PM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 03:19 PM


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