How to prevent apt from deleting packages in /var/cache/apt/archives ?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
In the name of God
Hi
A)Is there a configuration item that prevents apt from
deleting files in /var/cache/apt/archives ?
B)When apt removes some packages in /var/cache/apt/archives ?
Distribution: Debian Lenny (2.6.30-bpo kernel, Fluxbox) on Toshiba Portege 3500
Posts: 423
Thanked: 92
The apt system would not usually remove packages from the cached archive unless you pass the 'clean' parameter to apt-get or aptitude. It is not uncommon to have multiple versions of the packages in the cache as you go through upgrades.
There are some options that can be put into the /etc/apt/apt.conf file to control when and how files are cleaned from the archive (see 'man apt.conf').
In the name of God
Hi
A)Is there a configuration item that prevents apt from
deleting files in /var/cache/apt/archives ?
B)When apt removes some packages in /var/cache/apt/archives ?
Thanks in advance.
if you do :
Quote:
apt-get clean
you remove them.
If you does not that, they remain.
In case it does by itself ,there is something ... ?
I also would like to accumulate packages in my ubuntu 8.04.3 system's /var/cache/apt/archives to speed any re-installation.
/bin/ls -ltc /var/cache/apt/archives lists files dated from 15jul9 to 7sep9. I have not used apt-get or aptitude with the clean option. Searching the system log I cannot find anything that might have deleted files up to the start date. Old packages seem to be auto-deleted ... ?
I also would like to accumulate packages in my ubuntu 8.04.3 system's /var/cache/apt/archives to speed any re-installation.
/bin/ls -ltc /var/cache/apt/archives lists files dated from 15jul9 to 7sep9. I have not used apt-get or aptitude with the clean option. Searching the system log I cannot find anything that might have deleted files up to the start date. Old packages seem to be auto-deleted ... ?
you can create even your own server of deb for apt-get , for updating ur sources.list
its quite useful
you can create even your own server of deb for apt-get , for updating ur sources.list
its quite useful
Thanks frenchn00b
Nice idea if we had more than one .deb machine on this otherwise Windows-only LAN! Being as how it's only for one machine I'd be happy if I could find out how to stop ubuntu cleaning /var/cache/apt/archives and simply back it up to DVD at regular intervals.
Nice idea if we had more than one .deb machine on this otherwise Windows-only LAN! Being as how it's only for one machine I'd be happy if I could find out how to stop ubuntu cleaning /var/cache/apt/archives and simply back it up to DVD at regular intervals.
Or have I misunderstood something?
Do you know a good ftp provider?
ie. freeshell is really great.
It has unix and website, you can put also your own deb when u compile on that, and you update ur sources.list
Do you know a good ftp provider?
ie. freeshell is really great.
It has unix and website, you can put also your own deb when u compile on that, and you update ur sources.list
But wouldn't it take just as long to pull .debs in from a remote FTP site as to download them from the standard repositories? I'm not thinking about custom .debs (or so few they are not an issue); I'm thinking about speeding up re-installation by avoiding having to download lots of packages over a not-so-fast Internet connection.
The apt system would not usually remove packages from the cached archive unless you pass the 'clean' parameter to apt-get or aptitude. It is not uncommon to have multiple versions of the packages in the cache as you go through upgrades.
There are some options that can be put into the /etc/apt/apt.conf file to control when and how files are cleaned from the archive (see 'man apt.conf').
Thanks,
I have no /etc/apt.conf
I think that I need to create the /etc/apt.conf file
containing the following lines:
DSelect
{
Clean "never";
};
I got these lines from /usr/share/doc/apt/examples/apt.conf .
I didn't test the result.
But wouldn't it take just as long to pull .debs in from a remote FTP site as to download them from the standard repositories? I'm not thinking about custom .debs (or so few they are not an issue); I'm thinking about speeding up re-installation by avoiding having to download lots of packages over a not-so-fast Internet connection.
I have my /etc/fstab configured for NFS deb server, like debian.
thqt creqtes the server fo rserver qnd one with X:
Code:
echo "Hello Create from the pool the packages, from contrib and contribx"
echo " Type sources.list, to add and update your sources.list"
printf "Enter the distro name >"
read distroname
if [ "$distroname" == "sources.list" ] ; then
* echo "deb file:/home/debserver/ $distroname contrib" >> /etc/apt/sources.list
cat /etc/apt/sources.list
exit
exit
exit 0
fi
ls pool/
cd /home/debserver ; rm dists/$distroname/contribx/binary-i386/Packages ; mkdir -p dists/$distroname/contribx/binary-i386/ ; apt-ftparchive packages pool/contribx/ > dists/$distroname/contribx/binary-i386/Packages
#
and so on
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.