View previous topic :: View next topic |
Author |
Message |
sheepdog Guru
Joined: 14 Oct 2002 Posts: 369 Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA
|
Posted: Sat Jun 14, 2003 11:03 pm Post subject: Moving PKGDIR |
|
|
I'd like to move my packages from /usr/portage/packages to another directory. But I don't see an easy way to move all the softlinks from /usr/portage/packages/All to the other subdirectories from that location to the new location except one at a time. Any suggestions, please? Thanks. |
|
Back to top |
|
|
sheepdog Guru
Joined: 14 Oct 2002 Posts: 369 Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA
|
Posted: Sat Jun 14, 2003 11:39 pm Post subject: cpio |
|
|
Found a solution: Code: | cd /usr/portage/packages
find . > /tmp/names.list
cpio -p -l --make-directories /my/new/dir < /tmp/names.list |
cpio appears to preserve symlinks. I could not get tar to do the same. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|