thanks it was very helpful i was looking for it
I finished repackaging my Jaunty, a total of 1,425 pkgs in 942 MB of storage.
It took about 3 hours and I did get a couple of error messages indicating broken packages. I have to assume that my system was not utilizing these broken packages.
Cuba71, if you have ever uninstalled a package then when you run
you will get an error becauseCode:fakeroot -u dpkg-repack `dpkg --get-selections | grep install | cut -f1`
will list "deinstalled" packages as well as "installed" packages.Code:dpkg --get-selections | grep install | cut -f1
A way to avoid this problem is to run
instead, because unlike the dpkg commandCode:fakeroot -u dpkg-repack $(aptitude -F '%p' search '~i')
will list installed packages only.Code:aptitude -F '%p' search '~i'
I see where I made the mistake. I think I could've used:
to eliminate the "deinstall" packagesCode:fakeroot –u dpkg-repack `dpkg –get-selections | grep -v deinstall | cut -f1`
Last edited by atoztoa; December 8th, 2009 at 03:23 PM.
I think we should use
to ignore all the packages have the same version with the installed packages.dpkg -E -i *.deb
(the last command will take some time)Code:$ sudo apt-get install dpkg-repack fakeroot $ mkdir ~/dpkg-repack; cd ~/dpkg-repack $ fakeroot -u dpkg-repack `dpkg --get-selections | grep install | cut -f1`
When I tried the third command, it says
Unknown option: --get selections
and displays some options with --
what should i do to resolve this?