LinuxQuestions.org
Review your favorite Linux distribution.
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 10-20-2008, 09:15 AM   #1
kinddong
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Rep: Reputation: 0
How to set up local software repository


Hello
Iím trying to set up a software repository for my SLES10 servers. I want one server to download all the latest updates. The other servers should then download the updates from this server.
I have been trying to get my head around the createrepo command but it did not work for some reason.

Does anyone have a how to or tips on how to do it??
 
Old 10-20-2008, 12:56 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
I think we have what you want to do set up at work. We have a bunch of desktop machines that run SLED10. We have a server that runs SLES10 that downloads updates from Novell using yup and puts them in to yum repos. Then we use yum on the desktop machines to install updates from the SLES server. Is that what you want to do?

It might help if you post the createrepo command you use and the output you get from it.
 
Old 10-21-2008, 03:50 AM   #3
kinddong
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

That sounds like it.
Thnak you.
Do you have a how to or something similar? Or is it a straightforward installation?

I tried to get the create repo command to work but it has some dependencies that I canít figure out. It needs some python libs that are installed but Yast canít find it during the installation, so nothing happens (?). And I need Yum-metadata-parser that also have some dependencies that I canít figure out.
 
Old 10-21-2008, 02:40 PM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by kinddong View Post
I tried to get the create repo command to work but it has some dependencies that I canít figure out. It needs some python libs that are installed but Yast canít find it during the installation, so nothing happens (?).
I don't understand what you're saying.

The createreop command is fairly simply to use:

Code:
$ createrepo some_directory
Should do it.

Is your problem that you can't get the createrepo command to create a repo of that you can't get the createrepo package installed? You mention dependencies which suggests the latter but you also say that you cannot "get the create repo command to work" which suggests the former. They're completely different problems so you need to clarify which one you're talking about.


Instead of trying to describe what happens, post the exact commands you are running and the exact messages that result. Copy/Paste is your friend. Or screenshots.
 
Old 10-22-2008, 10:27 AM   #5
kinddong
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
It looks like I can't get the createrepo package installed?
I get:

Unresolved dependencies:
Installing createrepo-0.4.6-26.noarch[Local Packages].
There are no installable provider pf Pythin >= 2.5 for createrepo-0.4.6-26.noarch rpm-python-4.4.2.43.28.i586[SUSE Enterprise server 10 SP2] needed by created Installing createrepo-0.4.6-26.noarch[Local Packages]

But when I try to install the python package it says it's already installed(?)
 
Old 10-22-2008, 12:18 PM   #6
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
OK, so your problem is that you can't get the createrepo package to install. This is an entirely different problem to what your original post suggested.

Code:
The createrepo package has the following dependencies:
package: createrepo.noarch 0.4.6-39.5
  dependency: python < 2.5
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.13
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
  dependency: libxml2-python
   provider: libxml2-python.i586 2.6.23-15.9
   provider: libxml2-python.i586 2.6.23-15.9
   provider: libxml2-python.i586 2.6.23-15.9
   provider: libxml2-python.i586 2.6.23-15.9
   provider: libxml2-python.i586 2.6.23-15.6
   provider: libxml2-python.i586 2.6.23-15.9
   provider: libxml2-python.i586 2.6.23-15.9
  dependency: rpm-python
   provider: rpm-python.i586 4.4.2-43.28
  dependency: /usr/bin/python
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.13
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
  dependency: rpm >= 4.1.1
   provider: rpm.i586 4.4.2-43.28
  dependency: /bin/sh
   provider: bash.i586 3.1-24.14
  dependency: python >= 2.4
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.22
   provider: python.i586 2.4.2-18.13
Note that the createrepo package in my example is slightly newer then yours, probably because I have all the latest updates and you're installing of a DVD.

That your output says "Pythin >= 2.5" seems wrong, I would expect it to say <= not >= given that according to the above the version of Python used to meet the dependencies is 2.4. But then Python is spelt wrong in your post so maybe >= is a typo and what it actually says is <= ?

Anyway the above tells me that in order to install the createrepo package you need to have the packages:

python
bash
rpm
rpm-python

installed. So get them installed. Be warned that they may also have dependencies. You don't indicate what too you are using to try and install the rpm. Your best bet is to use Yast, assuming that has the DVD configured as a source/repo because then that will install any dependencies for you.
 
Old 10-23-2008, 06:12 AM   #7
kinddong
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Here are the different packages that's installed.
# rpm -q python
python-2.4.2-18.22

# rpm -q bash
bash-3.1-24.14

# rpm -q rpm
rpm-4.4.2-43.28

rpm -q libxml2-python
libxml2-python-2.6.23-15.9

I have installed the python 2.5.2 package, downloaded from python.org but it did not help. I still get the same error when i try to install createrepo.

# rpm -ivh createrepo-0.4.6-26.noarch.rpm
error: Failed dependencies:
rpm-python is needed by createrepo-0.4.6-26.noarch
python >= 2.5 is needed by createrepo-0.4.6-26.noarch


When i try to install the rpm-python, I still get the message.
error: Failed dependencies:
python >= 2.5 is needed by rpm-python-4.4.2-76.i586

The original post stated that I want to have a local repo, I still do, but for that to happen I need createrepo to work, don't I?

Sorry for not being clearer.
 
Old 10-23-2008, 02:12 PM   #8
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
Hmmm. OK. So the version of the createrepo package you're trying to install is different to what I have on my SLES system. Since mine has a slightly higher version number I assumed there had been an update. I just checked and createrepo isn't actually in SLES. It is in the SLE-SDK though which will be where I have it installed from. The version on the SLE-SDK SP2 DVD is createrepo-0.4.6-39.5.noarch.rpm. Which is not what you are trying to install.

So where did you you get that createrepo package from? I'm suspecting that your problem is that you're not using a createrepo package designed for use with SLES 10.

Go download the SLE-SDK from http://download.novell.com/Download?...d=eRAdQttrkeA~ (I think you only need DVD1) and try using the createrepo package that's included in that.
 
Old 11-05-2008, 04:42 AM   #9
kinddong
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Rpm package

I got the package from http://rpm.pbone.net/
I will try to set up the server from scratch when I got time (I lost the boot partition, hehehe).
Have whole lot of Windows problems at the moment that I got to fix first.
Thank you so far
 
Old 11-12-2008, 10:20 AM   #10
kinddong
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Original Poster
Rep: Reputation: 0
This should probably do it
http://www.novell.com/communities/no...yum-repository
 
  


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
want to set up local yum repository linmix Linux - Software 4 04-23-2013 04:42 AM
local yum repository tombolio Linux - Newbie 4 09-11-2008 08:28 PM
local repository abd_bela Solaris / OpenSolaris 1 01-12-2008 06:23 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 11:43 AM
local repository fails robingazi Debian 2 08-21-2006 09:33 AM


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