Re: [Cooker] Bad packages in latest cooker !!!

2003-03-16 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

James Sparenberg wrote on Sat, Mar 15, 2003 at 05:29:26PM -0800 :
> 
>   Is there a decent tutorial on using urpmi with a locally created rpm
> database?  I've a number of "our company only" rpms that I'd like to
> make available to urpmi is why.

The nice thing about urpmi is that you don't need to worry about an
hdlist when the source is local (nfs too).  If you have your rpms stored
someplace like /var/local/rpms, then the follwoing command creates an
entry in urpmi.cfg and an hdlist (only needs to be done once)
urpmi.addmedia Local /var/local/rpms
and the following command updates the list (run it after eaqch rsync or
ftp where you get the files)
urpmi.update Local
And then install the ones that you want either by name 
urpmi package
or if it's an update to an already installed package
urpmi --auto-select

It really is much easier than most people think.  The only time you need
to worry about generating an hdlist is if it's using ftp, ssh, http, or
rsync.

Blue skies...   Todd
- -- 
 Todd Lyons -- MandrakeSoft, Inc.   http://www.mandrakesoft.com/
Hey, I'm perfectly reasonable once you realize I'm right.
-- John Buttery on Mutt Users ML
  Mandrake Cooker Devel Version, Kernel 2.4.21-0.13mdk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+dPuQlp7v05cW2woRAmA2AJ0RolYNSnixlYxV9BgKxPDlfX7ltACghaUQ
GrlfRAbTfxrobPPdGUaPNmY=
=RlY0
-END PGP SIGNATURE-



Re: [Cooker] Bad packages in latest cooker !!!

2003-03-16 Thread Buchan Milne
On Sat, 15 Mar 2003, Levi Ramsey wrote:

> On Sat Mar 15 17:29 -0800, James Sparenberg wrote:
> >   Is there a decent tutorial on using urpmi with a locally created rpm
> > database?  I've a number of "our company only" rpms that I'd like to
> > make available to urpmi is why.
> 
> Basically I do the following... this is how I generate my own custom
> distrib for my local mirror (which only does main minus various i18n
> packages, installer stuff etc.).  I may be wrong in places, in which
> cases, someone will correct me ;o).

I think James was looking for something a bit simpler.

Easiest way is to decide on a repository, and how you want to access it 
(which depends on which distro releases your are running). We use 
anonymous FTP, since our repository is on an internal machine and our 
network is well firewalled and we still have one 8.0 and one 8.1 
production machine, plus an 8.2 running MNF. Once they all run something 
that can use urpmi over ssh, we will probably switch to that instead.

Place all the RPMS for the release in one directory, and then run 
'genhdlist .' there. Then, run 'urpmi.addmedia' on all the clients, 
pointing them to the hdlist.cz or synthesis.hdlist.cz in the directory you 
ran genhdlist.

We don't use it *that* much, since most machines run just main+contrib+ 
(in some cases) plf. The samba boxes use 
http://ranger.dnsalias.com/mandrake/samba, since that server is on our lan 
;-). We mirror updates for all the releases we run, and still have the 
original releases mirrored, mirrored on the same box. So all machines have 
at least a 'main','contrib' and 'updates' which are all internal.

> 
> 1) create a base/hdlists file.  This file has a simple format:
> 
> hdlist_name   path/to/rpmsname_of_distrib
> 
> hdlist_name is generally going to be hdlist.cz
> path/to/rpms is relative to the main directory of the distribution.  If
> your RPMS are in /distrib/RPMS, then the main directory of the
> distribution is /distrib, for instance.
> 
> In this case, base/hdlists looks something like
> 
> hdlist.cz RPMSinternal packages

Levi, Why don't you leave main intact, and just add another line to 
hdlists pointing to your own RPMS.internal (or whatever) directory.

> 
> 2) from the main directory, execute:
> 
> gendistrib --distrib .
> 
> which will create the files that urpmi needs

... based on what it finds in the hdlists file. So, theoretically, you can 
get contrib RPMS in the installer if you have the contrib RPMS listed in 
hdlists? (I have been meaning to try this, and actually added contrib to 
the hdlist on our 9.0 mirror ... but haven't gotten around to it).

> 
> 3) do a normal urpmi.addmedia for a local medium... in our example:
> 
> urpmi.addmedia source_name file://distrib/RPMS with ../base/hdlist.cz
> 
> source_name does not have to correspond to name_of_distrib...
> 
> That should do it...
> 

You know, this really only needs a GUI and some integration with LDAP to 
be able to compete with MS's AD-integrated software management features!

Regards,
Buchan

-- 
|Registered Linux User #182071-|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7




Re: [Cooker] Bad packages in latest cooker !!!

2003-03-15 Thread Levi Ramsey
On Sat Mar 15 17:29 -0800, James Sparenberg wrote:
>   Is there a decent tutorial on using urpmi with a locally created rpm
> database?  I've a number of "our company only" rpms that I'd like to
> make available to urpmi is why.

Basically I do the following... this is how I generate my own custom
distrib for my local mirror (which only does main minus various i18n
packages, installer stuff etc.).  I may be wrong in places, in which
cases, someone will correct me ;o).

1) create a base/hdlists file.  This file has a simple format:

hdlist_name path/to/rpmsname_of_distrib

hdlist_name is generally going to be hdlist.cz
path/to/rpms is relative to the main directory of the distribution.  If
your RPMS are in /distrib/RPMS, then the main directory of the
distribution is /distrib, for instance.

In this case, base/hdlists looks something like

hdlist.cz   RPMSinternal packages

2) from the main directory, execute:

gendistrib --distrib .

which will create the files that urpmi needs

3) do a normal urpmi.addmedia for a local medium... in our example:

urpmi.addmedia source_name file://distrib/RPMS with ../base/hdlist.cz

source_name does not have to correspond to name_of_distrib...

That should do it...

-- 
Levi Ramsey
[EMAIL PROTECTED]   [EMAIL PROTECTED]

The food of love is Mandrake root.
GPG Fingerprint: 354C 7A02 77C5 9EE7 8538  4E8D DCD9 B4B0 DC35 67CD
Currently playing: The Doors - Light My Fire
Linux 2.4.21-0.13mdk
 21:40:01 up 1 day, 43 min,  9 users,  load average: 0.08, 0.11, 0.15



Re: [Cooker] Bad packages in latest cooker !!!

2003-03-15 Thread James Sparenberg
On Sat, 2003-03-15 at 12:00, Buchan Milne wrote:
> On Sat, 15 Mar 2003, Gary Greene wrote:
> 
> > for me I just updated my hdlists by hand.
> > 
> > [EMAIL PROTECTED] RPMS]# genhdlist ./; mv -f hdlist.cz ../base/
> > 
> 
> Or:
> $ cd path/to/misc/
> $ gendistrib --distrib ..
> 
> (the dots are important)
> 
> Buchan

Buchan,

  Is there a decent tutorial on using urpmi with a locally created rpm
database?  I've a number of "our company only" rpms that I'd like to
make available to urpmi is why.

James





Re: [Cooker] Bad packages in latest cooker !!!

2003-03-15 Thread Buchan Milne
On Sat, 15 Mar 2003, Gary Greene wrote:

> for me I just updated my hdlists by hand.
> 
> [EMAIL PROTECTED] RPMS]# genhdlist ./; mv -f hdlist.cz ../base/
> 

Or:
$ cd path/to/misc/
$ gendistrib --distrib ..

(the dots are important)

Buchan

-- 
|Registered Linux User #182071-|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7




Re: [Cooker] Bad packages in latest cooker !!!

2003-03-15 Thread Gary Greene
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 15 March 2003 2:47 pm, Randy Welch wrote:
> Mircea Ciocan wrote:
> > VERSION: Mandrake Linux Cooker-i586 20030314 21:05
> >
> > Network install via http, this one are reported bad and because of zlib
> > system is unusable (no modules can be installed):
>
> Your mirror probably doesn't have the latest copy of hdlist.  I had the
> same problem until this morning ( 10am US PST ) when the mirror I use
> finally had it updated.
>
> -randy

for me I just updated my hdlists by hand.

[EMAIL PROTECTED] RPMS]# genhdlist ./; mv -f hdlist.cz ../base/

- -- 
Gary L. Greene, Jr.
Sent from uriel.gvsu.edu
 14:51:58 up 2 days, 16:06,  4 users,  load average: 0.87, 1.15, 1.53

Founder and president of the Grand Valley Linux Users Group.
  -==-
Chief Systems Architect, S4, Inc. - OS Department.
 -==-
Project Lead for the Sentinel Linux OS Project (KOMODO)
PHONE : 331-0562
EMAIL : [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+c4T9yPw381UL7WcRAg0AAJ4nZnqujCpMzHn/Ic+oEtgv6DO+MQCeIunn
UNcwJgwRaOzg4fIcJF2t1eI=
=VDur
-END PGP SIGNATURE-




Re: [Cooker] Bad packages in latest cooker !!!

2003-03-15 Thread tarvid
On Saturday 15 March 2003 01:32 pm, Mircea Ciocan wrote:
> VERSION: Mandrake Linux Cooker-i586 20030314 21:05
>
> Network install via http, this one are reported bad and because of zlib
> system is unusable (no modules can be installed):
>
> zlib1
> zlib1-devel
> menu
> urw-fonts
> hardrake
> harddeake-ui
> gnome-libs
> libgnome
> draxtools-newt
> draxtools
> drakconf
> libgtkxmhtml
> k3b
>
>   There is no indication of WHAT is wrong on the text install console, it
> just say: Bad package.
>   I've checked and double-checked my localmiror ( via sunsite.uio.no),
> check signature, all ok, what could be happening 
>   The same bag packages apear after repeating instalation.
>
>
>   Mircea C.
That happened to me too but a reinstall on a fresh floppy 10 minutes later 
went flawlessly.

Jim Tarvid




Re: [Cooker] Bad packages in latest cooker !!!

2003-03-15 Thread Randy Welch
Mircea Ciocan wrote:
VERSION: Mandrake Linux Cooker-i586 20030314 21:05

Network install via http, this one are reported bad and because of zlib 
system is unusable (no modules can be installed):

Your mirror probably doesn't have the latest copy of hdlist.  I had the 
same problem until this morning ( 10am US PST ) when the mirror I use 
finally had it updated.

-randy