How to prevent apt from deleting packages in /var/cache/apt/archives ?
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. |
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'). |
Quote:
Quote:
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 ... ? |
Quote:
its quite useful |
Quote:
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? |
Quote:
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 |
Quote:
|
Quote:
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. |
Quote:
Don't know how similar ubuntu 8.04 is to Debian but I have these files in /etc/apt/apt.conf.d which may be relevant
|
Quote:
|
Quote:
thqt creqtes the server fo rserver qnd one with X: Code:
|
All times are GMT -5. The time now is 04:43 AM. |