LinuxQuestions.org
Help answer threads with 0 replies.
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 03-22-2008, 12:26 PM   #1
babypeng
Member
 
Registered: Nov 2007
Distribution: Puppy
Posts: 45

Rep: Reputation: 15
cutomizing local .deb archive


Hello All,

I am new to Debian.

I just learned that "apt-get" and "Aptitude" save packages
in /var/cache/apt/archives ,
I looked into it and found a mess made off all the packages
I ever installed.
I would like to make some order in this mess.
I created a folder in the "archives" folder and named it "skype",
I then moved the "skype" .deb file into it (I downloaded it from
the Skype website).

1.
will "apt-get" see the package in that "skype" folder ?

I thought about adding an entry to the sources.list file,
but it doesn't make sense to me because "sources.list" lists
sources to download packages from, and my question is about
packages that are already downloaded.


I would also like to make some order in the packages I already
installed, for example, I would like to move all the "Gnome"
related packages to a dedicated folder, but gnome is already
installed and its related packages are already stored in the
"archives" folder, with all other packages.
Or in other words, the mistake is already made, and now I would like
to fix the damage.

When I download an installation file to my Win XP I save it
in a dedicated folder. I want to do the same with "Gnome" related
.deb packages. I would like to open a directory named "gnome"
and move all Gnome related packages into it.

2.
Of all the packages in the "archives" folder, how can I tell which
packages (.deb files) where downloaded when I installed Gnome ?

I have another Debian PC without internet connection so after
I figure out the above I will copy the stuff to flash disk and
install it on that PC.

Now, to prevent the problem before it's happening:
When I donload an installation package with internet browser
(either IE, FireFox or IceWeasel on Debian) it gives me the option
to choose where I want the file to be downloaded to.
I would like to achieve the same thing with "apt-get" or with
"Aptitude".

3.
How can I customize "apt-get" to download packages to a
certain folder "other than /var/cache/apt/archives" ,
before actually downloading it ?


And another issue:
I am actually using gedit on Debian to write this question,
and I noticed that I loose my internet connection every few minutes.
I have to perform "poff dsl-provider" and then "pon dsl-provider"
to get the internet connection back.
I use Debian in dualboot with Win XP ("bootpart" and "GRUB")
and everything is ok when connecting with the Win XP.

4.
Any idea where to look ?


5.
Is anybody here on LinkedIn and would like to communicate ?
My alias there is Squito Ototo.



Thanks in advance

Baby Peng
 
Old 03-23-2008, 07:01 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Why bother with organizing the apt cache? It's just a temporary directory for apt, and should generally be purged after each use anyway with apt-get clean or apt-get autoclean. If you want to install packages onto a different system there are better ways to do it. At the very least, you can drag the .debs you want out of the cache and install them manually with dpkg.

For more info, check out the apt howto (especially section 2.2: How to use apt locally.)
 
  


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
Is Aptitude capable of installing local .deb package and resolve dependency issue? Akhran Debian 3 07-06-2009 05:05 PM
Installing deb pacage on local drive Black Hawk Linux - Software 2 11-21-2006 01:43 PM
Cutomizing KDE: Changing the k menu icon mrcheesypants SUSE / openSUSE 1 04-17-2006 04:07 PM
deb archive mithereal Debian 2 08-30-2005 08:46 PM
Need help installing local deb file leiavoia Debian 5 04-15-2005 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 PM.

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
Open Source Consulting | Domain Registration