Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving PKGDIR
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sheepdog
Guru
Guru


Joined: 14 Oct 2002
Posts: 369
Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA

PostPosted: Sat Jun 14, 2003 11:03 pm    Post subject: Moving PKGDIR Reply with quote

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
View user's profile Send private message
sheepdog
Guru
Guru


Joined: 14 Oct 2002
Posts: 369
Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA

PostPosted: Sat Jun 14, 2003 11:39 pm    Post subject: cpio Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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