|
|
发表于 2009-10-8 15:58:25
|
显示全部楼层
Post by l_s;2034172
你得告诉,打包。打些文件撒。。。嘿嘿(是不是有点过分了)。。
是过分了点, 我前面都说得清清楚了.
Post by cliffordli;2033726
具体就是建一个临时目录..., 然后执行
# quickpkg e2fsprogs
这样在/usr/portage/packages/sys-fs/ 下会有一个 e2fsprogs的tbz2压缩文件, 把它解压到你的gentoo根目录就行了.
最后, 就是无论是哪个装了gentoo的兄弟, 执行quickpkg后打的包都可以挽救lz.
用gentoo的livecd打个包自救吧
# quickpkg e2fsprogs wget ...
少谁加谁,然后就用tar原地满血复活
把livecd那个/usr/portage/packages/下面的那个tbz2解压到时你原来装gentoo的根目录/, 比如用livecd按目录加载你原的的gentoo到/mnt/gentoo, 只要把那个tbz2这样解压就行了。
- # tar jvxf XXXX.tbz2 -C /mnt/gentoo/
复制代码
最后,引用man quickpkg,让你明白原理。
QUICKPKG(1) Portage QUICKPKG(1)
NAME
quickpkg - creates portage packages
SYNOPSIS
quickpkg <list of pkgs>
DESCRIPTION
quickpkg can be utilized to quickly create a package for portage by
utilizing the files already on your filesystem. This package then can
be emerged on any system. To review syntax for emerging binary pack‐
ages, review emerge(1). The upside of this process is that you don't
have to wait for the package to unpack, configure, compile, and install
before you can have the package ready to go. The downside is that the
package will contain the files that exist on your filesystem even if
they have modified since they were first installed. |
|