Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [opensuse] Can someone explain SLICK
  • From: Pascal Bleser <pascal.bleser@xxxxxxxxx>
  • Date: Wed, 12 Apr 2006 17:09:49 +0200
  • Message-id: <443D183D.3060905@xxxxxxxxx>
Hash: SHA1

Per Jessen wrote:
> houghi wrote:
>> On Wed, Apr 12, 2006 at 09:14:44AM +0200, Per Jessen wrote:
>>> Kynaptic is Debians Synaptic for KDE, right? I can't say if it
>>> widens your choice a lot - personally, I've only very rarely had a
>>> need for software not found @SUSE, but our requirements could be
>>> quite different.
>>> But I do download many things directly and just build from scratch.
>> A nice way to do this now is make an RPM (e.g. with checkinstall or
>> any other way) and then run `createrepo /usr/src/packages/RPMS` and
>> add that directory to you installation source.
> Hmm, yeah, that sounds interesting. Where does 'createrepo' come from?

It's the standard yum tool to create RPM-MD repositories.

RPM-MD is an XML based format for RPM package repository metadata that
is the primary format for yum, but also works with YaST2 (since 10.0)
and smart (well, smart can handle all of the formats, so no surprise here).

createrepo is part of the "createrepo" RPM that's shipped with SUSE 10.0
(and 10.1, I suppose ;)).

It is extremely easy to use, as the only parameter it requires is a
directory. It will then recursively harvest for RPM files, extract their
metadata and store all of that into a "repodata" subdirectory (to the
current directory).

So, say you have a bunch of RPMs in ~/repository/RPMS, then you just
need to do this:

cd ~/repository
createrepo .

You can use a cache directory so that createrepo only parses RPM files
that are new since the last run:

createrepo --cache .cache .

- --
-o) Pascal Bleser
/\\ <pascal.bleser@xxxxxxxxx> <guru@xxxxxxxxxxx>
_\_v The more things change, the more they stay insane.
Version: GnuPG v1.4.2 (GNU/Linux)


< Previous Next >
Follow Ups