Mailing List Archive

backup of all packages!
Hi all!

i don't remember who was that wanted to make the backup of all packages.
Because i have cancelled the relative email.. but i have this script that
it privides to this!


#!/bin/bash
#
# script makes the backup of all packages installed on your system
# and save all into /usr/portage/packages/All/
#

# From man qpkd
# -----------
# qpkg is GenToolKit's "query package" tool, using it, you can find
packages
# owning files on your filesystem
#
# -I, Include only installed packages
# -nc, Don't use colors
#


# for all packages installed
for i in `qpkg -nc -v -I` ;
do
# check if not exist already package precompiled...
if [ ! -f /usr/portage/packages/All/`echo $i | sed
"s/^.*\///"`.tbz2 ]; then
# it makes the packages precompiled..
quickpkg =$i;
fi;
done

When i have to reinstall the system.. how and when i must restore all the
packages? We could make one script in order to make this..

Ciao

Valerio

--
-------------------------------------------------------
FullName : Valerio Giacomelli
Nick : neryo
Cel : (+39) 347-4006418
Birth Data : April 20 1980
ICQ : 223087343
Current Mail : v.giacomelli@tiscali.it
Email at INFN : giacomelli@fe.infn.it

My Projects : http://www.neryo.it
http://www.forlinux.org

My Personal Home Page:
http://members.ferrara.linux.it/vgiacomelli/

Relative emails : neryo@neryo.it
neryo@forlinux.org
vgiacomelli@ferrara.linux.it

Live free() or die() ;))
OpenSource Philosophy
-------------------------------------------------------


--
gentoo-user@gentoo.org mailing list