[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Register Debian-Java in /var/cache/apt/archives ?



Here I want to clone machines from a parent;
with a script that installs packages from a list file automatically.
In order to speed up the process, I will prepare the
/var/cache/apt/archives with all .deb packages.

Okay, this works.

I also created the pseudo-Java package as described
(e.g. http://www.debian-administration.org/articles/142), and copied it
there as well.

What is not so nice is:
apt-get autoclean would remove it from there as shown here:
# apt-get -s autoclean
Reading Package Lists... Done
Building Dependency Tree... Done
Del sun-j2sdk1.5 1.5.0+update04 [65.2MB]

How can I 'register' it with apt-get as *installed* and latest package; so
that apt-get does not insist any longer on throwing it out ?

Seems I don't understand the dpkg / apt-get relationship yet; since dpkg
knows about it:

$ dpkg --get-selections | grep sun                 
sun-j2sdk1.5                                    install


Uwe




Reply to: