[plug] Mandrake 10.0 URPMI Quick HOWTO --- Beware very long

Scott Middleton scott at linuxit.com.au
Mon Aug 2 17:23:36 WST 2004


Mandrake 10.0 URPMI quick HOWTO By Scott Middleton – Linux Information
Technology.

Includes a little rsync and loopback mounting ISOs Howto.


Disclaimer – This is not a exact howto for the complete newbie. I assume
you know how to create directories, mount file systems and type commands
into the console. I also apologise in advance as I can't give any free
support on this. This is something I have compiled in my very small
amount of free time mainly for my own use. If you are looking for
support please contact me for my rates. I also take no responsibility
for any damage that may happen if you use this HOWTO. In-fact I would
say that if there is any part you don't really understand then you
shouldn't use it. /Disclaimer


This is what I do for myself. Since I am mainly a Debianite I like to
simply type in a package name and it installs it. I don't want to be
fighting with rpmfind.net and dependencies and such. 


I also found that since I stray quite considerably from the "standard”
Mandrake installs, when I upgrade it to the latest it is often
completely broken. I found that doing the way detailed below worked very
well when I upgraded from 9.2 to 10.0. Having Contrib and PLF sources
also gives you newer versions quite quickly, Mplayer seems to be needing
updating all the time. I do not recommend doing this for a server, in
fact I don't recommend Mandrake as a server. I also can't guarantee any
real stability when compared to other Linuxes but I now have three
Mandrake workstations between work and home that are running very
happily with my Debian servers. 


Please feel free to make any constructive comments. Constructive being
the operative word.


Basic commands (for more detail RTFM)
urpmi <package name> -- install a package and its dependencies.
urpmi.update -a -- Updates the the sources list for the latest packages.
urpmf <pattern> -- Good for finding the package name of those pesky
packages that have different names for every distro. Beware can give
copious output, have grep handy.


Need some packages:
urpmi cdrecord

Remove unwanted sources:
urpmi.removemedia -a


I like to loopback mount the Mandrake 10.0 ISOs. Since Main doesn't
change all that much, 4 CDs are not a lot for modern HDDs and its faster
to get them from HDD than the Internet. If you do not want to loopback
mount CD skip to "adding other sources".


Here is the relevant parts of my /etc/fstab cut 'n paste this.
/usr/src/Mandrakelinux10.0-Official-Download-CD1.i586.iso /mnt/cd1 \
auto defaults,loop 0 0
/usr/src/Mandrakelinux10.0-Official-Download-CD2.i586.iso /mnt/cd2 \
auto defaults,loop 0 0
/usr/src/Mandrakelinux10.0-Official-Download-CD3.i586.iso /mnt/cd3 \
auto defaults,loop 0 0
/usr/src/Mandrakelinux10.0-Official-Download-CD4.i586.iso /mnt/cd4 \
auto defaults,loop 0 0

...


Q. Howto create an ISO from a CD?
A. readcd dev=0,1,0 	\
f=/usr/src/Mandrakelinux10.0-Official-Download-CD?.i586.iso


Q. What device is my CDROM?
A. cdrecord -scanbus
....
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0  0) 'LITE-ON ' 'LTR-52246S ' '6S0D' Removable CD-ROM
0,1,0  1) 'HL-DT-ST' 'CD-RW GCE-8480B ' '1.03' Removable CD-ROM
0,2,0  2) *
....

Q. It doesn't work properly!
A. Sorry beyond the scope of this HOWTO. Maybe the Fellow PLUGgers can
help out.

Adding the Media.
urpmi.addmedia 10.0_Official_CD1 removable://mnt/cd1/Mandrake/RPMS/  \
with ../base/hdlist1.cz
urpmi.addmedia 10.0_Official_CD2 removable://mnt/cd2/Mandrake/RPMS2/ \
with synthesis.hdlist.cz
urpmi.addmedia 10.0_Official_CD3 removable://mnt/cd3/Mandrake/RPMS3/ \
with synthesis.hdlist.cz
urpmi.addmedia 10.0_Official_CD4 removable://mnt/cd4/Mandrake/RPMS4/ \
with synthesis.hdlist.cz

urpmi.update -a ---Not Really needed but just in case.

Do an update before we add the rest of the sources!!
urpmi --auto-select


Adding other sources.
http://urpmi.org/easyurpmi/index.php
Handy little reference for adding sources to your Mandrake list. I do
find that some servers are a bit inconsistent, especially when the
latest Mandrake comes out. Experiment to find your favourite. I wont
explain how to use it but I will explain how to convert it to rsync.


I prefer to use rsync simply because I like it and most of the time it
is faster. I choose planetmirror where possible. Again not for any
really good reason but mostly habit and speed. Please feel free to
choose your own.


Here is the output I was given: 
urpmi.addmedia plf ftp://ftp.planetmirror.com/pub/plf/mandrake/10.0 with
hdlist.cz 

urpmi.addmedia --update updates
ftp://public.ftp.planetmirror.com/pub/mandrakelinux/official/updates/10.0/RPMS with ../base/hdlist.cz 

urpmi.addmedia main
ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrakelinux/official/10.0/i586/Mandrake/RPMS with ../base/hdlist.cz 

urpmi.addmedia contrib
ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrakelinux/official/10.0/contrib/i586 with ../../i586/Mandrake/base/hdlist2.cz


To convert these to rsync is rather simple.

Planetmirror PLF rsync: 
urpmi.addmedia plf rsync://rsync.planetmirror.com::plf/mandrake/10.0 \
with hdlist.cz

Planetmirror Updates rsync: 
urpmi.addmedia --update updates \
rsync://rsync.planetmirror.com::mandrake/updates/10.0/RPMS with \
../base/hdlist.cz

Secsup Mirror Main -- Not needed if have loop back mounted the CDs
urpmi.addmedia main \
rsync://mirrors.secsup.org::mandrake/10.0/i586/Mandrake/RPMS with \
../base/hdlist.cz

Secsup Contribs
urpmi.addmedia contrib
rsync://mirrors.secsup.org::mandrake/10.0/contrib/i586 with \
../../i586/Mandrake/base/hdlist2.cz


WAIX Sources from Leon Brooks' E-mail last month – You do not need to
install Main if you have followed my Loop Back mounting process.

urpmi.addmedium main
http://mandrake.waixusers.net/pub/official/10.0/i586/Mandrake/RPMS \
with ../base/hdlist.cz

urpmi.addmedium contrib  \
http://mandrake.waixusers.net/pub/official/10.0/i586/Mandrake/RPMS2 \
with ../base/hdlist2.cz

urpmi.addmedium --update updates \ 
http://mandrake.waixusers.net/pub/official/updates/10.0/RPMS  with \
../base/hdlist.cz


If someone can tell me of a WAIX PLF source that would be good.


Mini rsync HOWTO.
To get a directly listing of an rsync server from the command is simple:
rsync domain.com:: this will give a listing of rsync directories. You
can follow them further down until you see the same pattern in the FTP
that "easy URPMI" gave. Eg rsync rsync.planetmirror.com::/mandrake/iso/
will give::

drwxr-xr-x 4096 2004/02/05 05:14:59 .
drwxr-xr-x 4096 2004/02/05 05:14:59 alpha
drwxr-xr-x 4096 2004/02/05 05:14:59 amd64
drwxr-xr-x 4096 2004/05/25 11:30:27 i586
drwxr-xr-x 4096 2004/02/05 05:14:59 ia64
drwxr-xr-x 4096 2003/04/23 14:33:57 ppc
drwxr-xr-x 4096 2004/02/05 05:14:59 sparc


rsync rsync.planetmirror.com::mandrake/iso/ppc/ will give:
drwxr-xr-x 4096 2003/04/23 14:33:57 .
lrwxr-xr-x 56 2004/01/03 09:53:16 MandrakeLinux-9.1-CD1.ppc.iso
lrwxr-xr-x 56 2004/01/03 09:53:16 MandrakeLinux-9.1-CD2.ppc.iso
lrwxr-xr-x 56 2004/01/03 09:53:16 MandrakeLinux-9.1-CD3.ppc.iso
lrwxr-xr-x 46 2004/01/03 09:53:16 md5sums.9.1.ppc.asc

<slightly OT>
To download/update all of these to the current directory is quite
simple:
rsync -avP rsync.planetmirror.com::mandrake/iso/ppc/ .
</slightly OT>

Hopefully you have all the sources you need type:
urpmi.update

the entry to update is missing
(one of 10.0_Official_CD1, 10.0_Official_CD2, 10.0_Official_CD3,
10.0_Official_CD4, plf, updates, contrib)
 
or with out the loop mounted CDs:
urpmi.update

the entry to update is missing
(one of plf, updates, contrib, main)


Once you have done that then type:
urpmi.update -a
urpmi --auto-select

Good Luck


-- 
Scott Middleton <scott at linuxit.com.au>
Linux Information Technology




More information about the plug mailing list