Sometimes you want to modify your ebuilds by editing .ebuild-scripts. At other times, its convenient to just change the contents in the tarball. This is a short description on how to do the latter.

1: Unpack, edit and repack tarball
Simple, just tar xzf tarball.tgz
Use an editor to change source
repack with tar czf tarball.tgz folder

2: Copy modified tarball to portage
cp tarball.tgz /usr/portage/distfiles

3: Rebuild digest
ebuild /usr/portage/[category]/[app]/application.ebuild digest

Back to index