I don't want to clean /var/cache/apt/archives/, I need to stay my deb files there. Which apt option can works for me?
123830
On a current (2018-06) Debian sid, installing .deb packages via apt-get or aptitude or synaptic caches the downloaded packages in /var/cache/apt/archives:  # rm -f /var/cache/apt/archives/nano_* # aptitude install nano   [...] # aptitude purge nano   [...] # ls /var/cache/apt/archives/nano_*  /var/cache/apt/archives/nano_2.9.7-1_amd64.deb   Using the frontend apt does not cache the downloaded files anymore:  # rm -f /var/cache/apt/archives/nano_* # apt install nano   [...] # ls /var/cache/apt/archives/nano_* ls: cannot access '/var/cache/apt/archives/nano_*':       No such file or directory   So switching between two mutually exclusive sets of packages re-downloads everything. How can I change the settings of apt to keep the downloaded files?
32448
How can I check dependency list for a deb package. I am running Ubuntu 11.10 and I have backed up all deb packages from var/cache/apt/archives. I want to format my pc and re-install selected applications only. Also how can I get the list of installed packages and dependencies.
116609
From the usability point of view, I do not understand why on each release upgrade you have to manually patch all the URLs of apt in order to make them point to the newer distribution.  Why is not possible for apt to auto-detect the current and use it, so when you upgrade there is no need to upgrade the urls anymore?
60771
I remember I saw a apt mirror somewhere containing older distributions but I cannot find it anymore. Does anybody know where to find it?
6262
What is difference of apt-get and aptitude? Does both of them use same repositories?  Which one is better?
97053
It is not about the common download &amp; install thing, what apt (aptitude, etc) does, it is a scripted download a package file.  I found the dget tool for this task, which works quite well. But, unfortunately, it doesn't have any option to specify a different repository URL as it is given in the /etc/apt/sources.list.  Is it somehow possible? Actually, a dget-like functionality would be the best, but where I can also specify the repo URL.    P.s. thank you very much the scripts, but I would like to prefer a debian tool for this very simple task. It will be part of a buildscript, for external usage, and any unneeded complexity has intolerable collateral costs. It must be done by a debian tool.  P.s.2. Finally I solved this with updating the system-wide repos, and downloading the packages with dget. Thank you very much the scripts!
75953
I have 20 to 3o computers on my network and I have a copy of the debian packages on /var/cache/apt/archives but when I take this downloaded copy to any other machine I need to hit an "apt-get update" , How do I avoid this ? Where is the list of packages which is updated by that command stored. I need to copy them as well, and use it on a computer which is completely offline.
14139
There are so many software which we installed via .deb file because official ubuntu repo has very old version of it. But I was just wondering how to update packages install via .deb file.  One particular example is sonic-visualiser The official ubuntu has 3 years old 2.5 version while the official site has 3.0.3 version
15711
Because of  I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package.   How can this be achieved?
67550
Is there a way to show the history of packages that were changed by apt-get via command line?
100150
I know that I can use apt-get remove &lt;package&gt; to remove a program.  But apt is a program itself. Could I use apt-get remove apt to remove it, or would it get confused part way through?
45036
What are the differences between apt-get, aptitude, and synaptic, and which one is the recommended choice for normal day-to-day package management?  This is a basic question, but I think it'd be good information to have on the site, and besides I am relatively new to Ubuntu so I could use an expert explanation.
92410
Recently I uninstalled some software using sudo apt-get --purge autoremove, thinking that this would remove all traces of it including unused dependencies and configuration files. However I discovered that a configuration file was left behind in my home folder.  Is there a more powerful command which would remove even that?   Also, is it safe to delete the hidden files and folders under home, if they are merely configuration files, or are there other kinds of files?
66280
How can I programmatically/script disable apt unattended upgrades? Running Ubuntu 16.04.
62018
I'm contemplating writing a script that does this:   Goes through each file in /usr/lib Does a dpkg -s search on each file. Reports a list of "orphan" files not belonging to any .deb package.   The idea is that over time, I've installed a lot of make install software and I'd like to get a list of leftover files from manually installed software I've since deleted.
87117
In Debian, AFAIK some packages are maintained in Subversion (famously team-pkg-gnome), while some are maintained in git, and others in some other VCS.   Is there a way to know where the source of a package is without doing an apt-get source $PACKAGENAME?  I tried three methods and all failed :-  $apt show $PACKAGENAME $aptitude show $PACKAGENAME  $apt-cache show $PACKAGENAME    none of the above are able to give/share this information.   Is there anyway to get the information. I need to know the source repo. name and whether it is in git, svn or some other version control.
54205
I am completely new to Ubuntu. A friend recommended me to frequently run the following commands:  sudo apt-get upgrade sudo apt-get update sudo apt-get autoremove sudo apt-get autoclean   He said that this will somehow keep my system clean and updated. I do not know what exactly these commands do. Is it really useful to run them regularly?