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
|