Mperdema /usr/bin, /usr/local/bin

Stelios Bounanos sb at dial.pipex.com
Sun Aug 29 03:01:14 EEST 2004


 >>>>> On Sun, 29 Aug 2004 01:00:34 +0300, fs 
 >>>>> <admin at www0.org> was rumoured to have said:

 > On Sat, Aug 28, 2004 at 06:03:32PM +0000, skia wrote:
 >> Giorgos Keramidas <keramida at hellug.gr> wrote in 
 >> news:mailman.490.1093714992.316.linux-greek-users at lists.hellug.gr:
 >> 
 >> Telika otan aktevazoume ena *.tar.gz apo to net pou akrivos prepei na to 
 >> kanoume tar zxvf *.tar.gz? Se opoion folder theloume i sygekrimmena sto 
 >> /usr/bin i isos sto /usr/local/bin?

 > Opoy 8es bazeis ena source tar wste na to doylepseis. Otan einai
 > binaries h' otan genika prepei na egkatasthseis kapoy kati, epeidi ksero
 > oti teleytea asxolisai me debian, h episimh policy toy debian einai na
 > mhn egka8istas tipota sto /usr/local alla sto /usr - i.e. executables sto

Tote ti to exoyme to /usr/local?  To Debian policy anaferetai sta
paketa toy idioy toy Debian, to opoio an den kanw la8os akoloy8ei to
FHS.  Ayto leei oti ta periexomena toy /usr/local den prepei na
kindyneyoyn na allaxtoyn 'h sbhstoyn kata ta upgrades ths dianomhs,
poy shmainei oti to *packaging system* den prepei na bazei arxeia ekei.

 > /usr/bin kai oxi sto /usr/local/bin - kai kata protimish na metatrepeis
 > ta panta se .debs me to dpkg-deb(to /usr/local 8eoritai reserved gia
 > ton root user).

 > Sinithos ena --prefix=/usr kata to ./configure arkei kai oson afora th
 > xrhsh toy dpkg-deb einai perissotero poluyplokh alla ena aplo .deb xwris
 > idiaiterh prosoxh sta dependencies gia uninstallation argotera - arkei
 > ayto na einai en gnwsh soy - einai aplh doylia.

Dhladh ayto poy les einai oti ena proxeiro .deb einai protimotero apo
ena matso arxeia sto /usr/local mono kai mono epeidh to deb 8a balei
ta arxeia sto /usr, ekei poy mporoyn na kanoyn conflict me merikes
dekades xiliades alla?!?  Diafwnw, an den mporeis na ftiakseis ena
policy-compliant paketo me aysthra dependencies poy 8a paizei swsta me
ta ypoloipa paketa klp. klp., ase to erhmo to packaging system hsyxo,
bale ta arxeia soy sto /usr/local/foo kai ftiakse symlinks me to xeri
'h xrhsimopoihse kati san to GNU stow.

Epishs, skepsoy ligo ti 8a ginei sth lista an ftiaksei dika toy paketa
o skias kai meta paei na kanei upgrade sto kainoyrio stable :-P

rgds,
/-sb.




More information about the Linux-greek-users mailing list