Re: lug-bg: RE: rm -rf /usr (***** **)
- Subject: Re: lug-bg: RE: rm -rf /usr (***** **)
- From: George Danchev <danchev@xxxxxxxxx>
- Date: Sun, 15 Aug 2004 17:34:45 +0300
On Sunday 15 August 2004 15:56, George Danchev wrote:
> On Saturday 14 August 2004 17:59, Dimitar Tomow wrote:
> > Izw. za lat. Winboze, 6te byda kratyk.
>
> na 6lokavica stoto gledam se oplakvash ;-)
>
> > Okaza se 4e e stignal do na4aloto na doc i tam sym go sprql , nama i
> > pomenot /usr/bin ... i sega idwa typata 4ast za men , neiskam da obivdam
> > nikoj ili ni6to , no kak move programi kato dpkg i apt da sa w /usr/bin
> > ... spored men ili /bin , ili dave /sbin ... Kak move programite
> > izgravda6ti debian da sa w /usr/bin ... uvas za men :|
>
> ima si FHS, debian-policy i t.n. tam pishe sto.
>
> > apt
> > no such ...apt
> > cd /var/cache/apt/archives
> > ls | grep apt
> > dpkg -i apt_some-version_i386.deb
> > no such ... dpkg
> >
> > wypros pri polovenie 4e nqma i gcc kak za boga da kompiliram / instaliram
> > dpkg , posle apt :??
> >
> > ili kak da recsbf24 + nqkoj programi :?
> > ili po-qsno kazano:
>
> predlagam ti da izpolzvash dfsbuild paketa da druga debian machina za da si
> syzdadesh rescue live cd image za tvoqta arch ili napravo da to4nesh gotov
> image ot http://people.debian.org/~jgoerzen/dfs/
>
> boot-vash ot nego i
> dpkg-repack dpkg apt
> koeto ste t create-ne tezi paketi v cwd.
> mount broken-hda-partition /mnt/nesto
> chroot /mnt/nesto
> mount -t proc none /proc
> dpkg -i oniq dpkg i apt deto gi repack-na
> moje i tuka da vdignesh mreja i apt-get --reinstall spisyk ot paketi kato
> base-files base-config i t.n.
> Ot tova polojenie moje i da debootstrap-nesh woody/sarge/sid (tam s kakvo
> si) w nqkoq nezavisima dir na hda-to da go imash pod ryka.
> umount /proc ; exit
>
> boot ot hda, dano ne reve mnogo za nenamereni files ot /usr ;-) ako mnogo
> reve se vrystash na dfsbuild environment-a i slagash tam za kakvoto reve
> ;-)
>
> ot hdd-to ve4e
> dpkg -l | awk '{print $1 $2}'
> i triesh revodete zapo4vashti s "rc", da ostanat samo tezi zapo4vashti s
> "ii", no pak gledash vsi4ki da si imash edno na um.
> apt-get --reinstall install `cat spisyka paketi`
>
> razbirash ideqta kakva e
>
> > livecd Knoppix or Debian based 4rez , koeto da si instaliram dpkg/apt
> > ediniq wariatn e
> >
> > ./configure --prefix=/mnt/Debianonhda ...
> > make
> > make install
> > na dpkg i posle
> > dpkg -i apt...
> > apt-get --reinstal *
> >
> > kato neznam dali * -ta 6te podejstwa kato wsi4ko :(
>
> ami ste stane da go build ot src ot cvs-a ili ot debian source package, ako
> imash syotvetnite build-depends, ama stom kazvash 4e e stignalo do "s",
> zna4i nqmash make, za autoconf nqma da govorim ;-) moje da gi repack-nesh i
> tqh de.
zabravih da obadq 4e kogato ve4e imash rabotesti apt, dpkg, perl i t.n. base
utils na systema ot hard da instalirash debsums (depends on
perl,libdigest-md5-perl) za da se uverish dali imash oste instalirani paketi
4iijto filove si bil del-nal s rm. Sega debsums bez argumenti ste 4ekva
dosta, pyk ako iskash mu podaj spisyka ot instaliranite paketi na tvoqta
sistema (man debsums)
Eto kakvo kazva ako sym si del-nal /bin/ed:
<some files skipped>
usr/share/man/man1/ed.1.gz OK
usr/share/info/ed.info.gz OK
debsums: can't open ed file bin/ed (No such file or directory)
sledva apt-get --reinstall install ed i t.n. stava qsno.
Ako imash installed packages bez sumi (debsums -l) naj-dobre gi reinstall.
Tova e za sobstveno ubejdenie 4e zada4ata po vyzstanovqvaneto e zavyrshila.
--
pub 4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu ; pgp.mit.edu>
fingerprint 1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|