PS
i know it was stupid to try this but i was bored and wanted to ACTUALLY learn something heh see what it gets me


Code: Select all
BlackBeauty ~ # emerge coreutils
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/coreutils-5.2.1-r1 to /
[coreutils-5.2.1-r1] bash: rm: command not found
/usr/sbin/ebuild.sh: line 522: rm: command not found
/usr/sbin/ebuild.sh: line 523: rm: command not found
keeptemp
/usr/sbin/ebuild.sh: line 528: mv: command not found
keepwork
/usr/sbin/ebuild.sh: line 538: sort: command not found
/usr/sbin/ebuild.sh: line 538: tr: command not found
[coreutils-5.2.1-r1] bash: rm: command not found
>>> md5 src_uri ;-) coreutils-5.2.1.tar.bz2
>>> md5 src_uri ;-) coreutils-5.2.1-gentoo-0.5.tar.bz2
>>> md5 src_uri ;-) coreutils-5.2.1-i18n-0.2.patch.bz2
/usr/sbin/ebuild.sh: line 28: tee: command not found

I would suggest that not running shell scripts you get off IRC as root might be a good start.sinisterdomestik wrote: i wanted to start learnin how to keep that shit from happenin to me
Code: Select all
which rm 

BlackBeauty ~ # qpkg -f /bin/ls_Max_ wrote:For each of the files that were overwritten, you can check which package supplies them and reemerge them:
emerge gentoolkit
For e. g. ls:
qpkg -f /bin/ls
or
qpkg -f `which ls`
on my systems that gives me
sys-apps/fileutils
sys-apps/coreutils
After reading the description, it looks as if you want to re-emerge coreutils... and so on. That should overwrite all the files you need with clean versions.
You could even script this, I guess.

if it wouldnt be TO much trouble, that would be WONDERFUL. its been WAY to long since ive been on linux and i have forgotten a lot of the commands, etc. ANY help with the install cd bit would be tremendously helpfulHoudini wrote:Boot a install CD, and fix the damage (install coreutils) without chrooting. If you need help with that, one of us can build you a binary package of it (is there one on the CD?).



i feel REALLY freakin stupid askin this question, but once i have them decompressed, do i just copy them over my old bin, etc, usr folders??Houdini wrote:I built a coreutils package and a fileutils package for you, they're at http://www.clanspum.net/~houdini/binpackages/. They are built for the lowest common denominator (686, -O0).
bzip2 -d <file>, then untar it? Alternatively, have a look at the tar man page under the "j" option. tbz2 is a tarball compressed with bzip2.sinisterdomestik wrote: stupid question, but how do you decompress a .tbz2 file?? never had to before
Code: Select all
mkdir /mnt/gentoo/myfilesystemroot
Code: Select all
mount /dev/hdaX /mnt/gentoo/myfilesystemroot
Code: Select all
mount /dev/hdaY /mnt/gentoo/myfilesystemroot/usr
Code: Select all
cd /mnt/gentoo/myfilesystemroot
tar tvfjp /path/to/stage1-x86-blah-blah.tbz2 ./bin
