linux για την τρίτη ηλικία
Konstantinos Peletidis
kpeletidis at dsl.pipex.com
Wed Nov 17 02:51:49 EET 2004
On Tue, 16 Nov 2004 23:02:14 +0200
V13 <v13 at priest.com> wrote:
> On Tuesday 16 November 2004 22:47, Konstantinos Peletidis wrote:
> > Etsi loipon, emeis oi paraksenoi oi slackers, mporoume na kanoume
> > uninstall mia efarmogh me ena aplo
> >
> > # tar zxvf koko-123.tar.gz ; cd koko-123 ; make uninstall
>
> Oxi kai toso aplo. To oti to automake dimioyrgei aytomata to uninstall
> target den shmainei pos paizei pantoy kai doylevei apsoga.
> Xaraktiristika paradeigmata:
>
> a) Koina arxeia metaksy 2 paketon
Mhpws mporeis na dwseis kapoio paradeigma? Isws sthn periptwsh
egkatastashs kapoiou server na yparxei tetoio provlhma me kapoio arxeio
sto /etc alla den nomizw pws auto isxyei gia tis perissoteres -
an oxi oles - efarmoges.
> b) Aferesh enos paketoy sto opoio eksartatai ena allo
Milame gia egkatastash apo source, oxi gia paketa. O,ti arxeio
egkatasta8ei apo source den prokeitai na symperilhf8ei se kammia package
database.
> c) (kai simantikotero) an o X eftiakse to Y xrhsimopoiontas to
> automake kai exei balei esto kai ena local installation rule tote
> prepei na exei prosthesei kai ton analogo uninstallation rule, to
> opoio stin praksi den ginetai sxedon pote.
Proswpika, exw xrhsimopoihsei epityxws arketes fores sto parel8on to
'make uninstall' gia efarmoges pou egkatesthsa apo source kai apofasisa
pws den 8elw na tis krathsw. Pantws, to oti kapoioi developers den exoun
uninstall targets sta makefiles tous isxyei.
> d) Den xrhsimopoioyn ola ta progs to automake. Ante kane uninstall mia
> palia ekdosh toy gcc, ths libc, tvn X h to udev.
Dekta ta osa anafereis omws an h8ela na kanw compile thn libc h ton gcc
den 8a eixa slackware alla gentoo. Gia servers, terasties vivlio8hkes,
"varia" desktop environments, ktl protimw thn egkatastash apo packages.
An omws 8elw na egkatasthsw mia prosfath release mias "mikrhs" efarmoghs
opws ena mail client h enan port scanner, epeidh synh8ws den yparxei
slackware package protimw na kanw compile apo source, egka8istwntas thn
efarmogh sto /usr/local. Etsi, kai thn douleia mou kanw, kai ta /etc,
/usr/lib, /usr/share, ktl menoun "ka8ara".
Epishs, pistevw pws h apegkatastash ths libc 8a htan arketa
peripeteiwdhs akoma kai an xrhsimopoiousa kapoio package tool.
> > Enallaktika, yparxoun poly omorfa ergaleia pou parakolou8oun poia
> > arxeia egka8istantai kata to 'make install' kai prosferoun thn
> > dynatothta apegkatastashs ths xyz efarmoghs akoma kai an exeis
> > petaksei to arxiko package.[2]
>
> Gia ta opoia omos yparxoyn toylaxiston N programata sta opoia den
> doylevoyn (eite coriazoyn, eite exoyn problima me statically linked
> 'ln' klp klp)
Den gnwrizw gia programmata pou prokaloun coriasma. An sou einai eukolo
na dwseis paradeigma 8a htan poly xrhsimo. Oso gia to provlhma me to ln,
an anaferesai sto checkinstall, to problhma aforouse sygkekrimenh
slackware version(8.0). Sthn version 9.1 pou exw egw, to ln einai
dynamically linked.
> > Ypen8ymizw pws h egkatastash efarmogwn apo source einai mia mono apo
> > tis dia8esimes epiloges. To package system tou slackware einai aplo,
> > leitourgiko, kai se syndiasmo me to swaret[3] se kanei na niw8eis
> > san sto... FreeBSD sou :-)
>
> Den ksero kata poso exei alaksei to 'package system' toy slack, alla
> mexri prin ligo kairo, to mono poy ekane einai to na krataei lista me
> ta arxeia poy bazei, na trexei merika scriptakia se diafores faseis
> kai na kanei untar. Ayto kalyptei mono merika apo ta provlimata kai
> den parexei elegxo ekdoseon, aytomata updates kai dependency tracking.
To swaret kanei ta tria teleutaia pou anafereis, symplhrwnontas etsi ta
pkgtools tou Slackware. Epishs, dia8etei rollback capability.
> > [1] Me auton ton tropo, an kshlwseis thn version V mias efarmoghs
> > gia xarh ths version V+1 kai meta deis pws einai xeiroterh apo thn
> > prohgoumenh, mporeis na anatrekseis sto local repository me ta
> > packages kai na ksanaegkatasthseis thn palia version.
> > [2] http://asic-linux.com.mx/~izto/checkinstall/
>
> Been there done that, ran away...
Whatever floats your boat.
> Telos, prepei na skeyteis periptoseis opos:
>
> Exeis tin postgresql, h opoia periexei ton server kai tis libraries
> gia na
> grapseis kodika poy na epikinonei me ayti. Kato apo to slack
> (Diorthoste me an kano lathos) eisai 100% anagkasmenos na baleis kai
> ton server apla kai mono gia na exeis tis libraries kai ta header
> files. To idio isxyei kai an to baleis apo sources. Se periptoseis
> opos to debian exeis ksexorista paketa gia tis libs, ta headers kai
> tin idia tin basi... To idio problima yparxei kai se polla alla
> programmata.
Den exw asxolh8ei ka8olou me ton sygkekrimeno server, epomenws den mporw
na ekferw apopsh. Toso stis parapanw paragrafous oso kai sto prohgoumeno
mail mou anafer8hka se efarmoges.
> <<V13>>
--
Konstantinos Peletidis
Electronic & Computer Engineer
More information about the Linux-greek-users
mailing list