LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2007, 02:59 PM   #1
drudge
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 17
redirect from directory to another


Hi, I like to have 2 installations of the same distro, 1 working
and one for 'messing/breaking'. Each time I re-install the 'messing'
version I copy the contents of apt cache archive from working.

Now it's up to 1.5gb is there any way (I'm sure there must be)
to point the new empty cache to the old full cache on a
different partition? So that synaptic would use the existing debs.

ie When synaptic looks in /var/cache/apt/archives
at actually sees the contents of /mnt/hdb5/var/cache/apt/archives

Any info, even phrases I should be googling for would be appreciated.
Thanks
 
Old 10-04-2007, 03:12 PM   #2
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
simple thing like:

ln -s this_old_dir to_this_new_dir

should do it.
 
Old 10-04-2007, 03:36 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
One word: symlink
 
Old 10-04-2007, 04:39 PM   #4
drudge
Member
 
Registered: Dec 2006
Posts: 36

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by winsnomore View Post
simple thing like:

ln -s this_old_dir to_this_new_dir

should do it.
Thanks, # ln -s /mnt/hdb2/var/cache/apt/archives to /var/cache/apt
worked great.

Synaptic does use the old archive, which is good, but it also
shows this error, even though everything seemed to work ok.

E: Unable to stat to. - stat (40 Too many levels of symbolic links)

I'll go googling...
 
Old 10-04-2007, 05:32 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by drudge View Post
E: Unable to stat to. - stat (40 Too many levels of symbolic links)
This most likely means there is at least one file inside the target directory (e.g., “/mnt/hdb2/var/cache/apt/archives”) which has a symbolic link outside and into the source (e.g., “/var/cache/apt”). As such, when the computer tries to stat this file, it goes crazy in an infinite loop. But there are safeguards to protect against such infinite looping (normally implemented as symlink-level count). Thus it throws the error. As long as this error is non-fatal, and as long as everything else seems to work fine, I wouldn’t worry about it.
 
Old 10-04-2007, 06:39 PM   #6
drudge
Member
 
Registered: Dec 2006
Posts: 36

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by osor View Post
As long as this error is non-fatal, and as long as everything else seems to work fine, I wouldn’t worry about it.
That's good to know, thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_rewrite, simple directory redirect? xconspirisist Linux - Software 3 12-20-2005 09:22 AM
redirect matt1982 Programming 2 12-20-2004 10:53 AM
Redirect wonderland Linux - Newbie 3 05-25-2004 12:50 AM
redirect spank Linux - Newbie 2 03-01-2004 04:38 PM
Redirect sheek Programming 1 07-25-2003 01:53 PM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration