I'm using aptitude as package manager. If one marks packages for removal it calculates the changing in disk usage, i.e. how much space is freed by removing that package and its automatically installed, otherwise unused dependencies.   Is there a way (not necessarily within aptitude) to get this number for, say, all packages marked manually installed?
123312
given a package name, I want  to find how much space would be freed up if the package, and its dependencies, were deleted.  As dependencies might be shared between packages, maybe the right way to put it is: How much space does a package take, including all dependencies that are only beeing used by this package  I would prefer CLI solutions, because I would use them in scripts
22282
Okay, I understand how I may use apt-get {install|upgrade|remove} mypackages to install, upgrade, or remove binaries as well as their configuration data files and dependencies (actually, remove will only remove the binaries unless additional flags are provided).  I am not looking for how it is used as the man describes this, but high level what it is doing.  My end goal is to create a means for me to install and manage some custom software (created by a make file) on multiple remote machines, and I need to learn more about the process.  If answers to this question are based on which distribution is used, please tailor to Debian.  In addition to generally how it works, I have the following specific questions:   How does the client that is accessing the apt repository keep track of the files? Must the repository be hosted on the same operating system (i.e. can apt repository be hosted on redhat)? How are the locations to install files specified?  Is this specified by the .deb file? How is a remote machine accessing the repository?  Is it just ftp(s) or http(s)? Is the machine that is hosting the repository running special software (like gitlab for a git repository), or is it just some structured file system?
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?
29588
I used sudo apt-get remove python command and accidently removed a bunch of packages that were required. I logged in via command line and installed ubuntu-desktop again but there are other packages that are missing, and I'm looking for a way to easily reinstall those removed packages. Since there's the log at software-center I wanted to ask what the easiest way might be to roll back changes or extract the removed packages list from the software center...  note: I typed sudo apt-get install .... .... ... ... for about two dozen of those removed programs in that list, but when I pressed enter it didn't install any of them because some package names couldn't be found.  The programs were removed at the same date.
38421
As time goes by we tend to do apt-get install and add or replace software.  Are these archived in some form or do they get auto-cleared after installation? And if it doesn't get auto-cleared, it would mean that a clean up is needed, isn't it?  Finally, if they're not auto-removed, can we reuse these packages on different machines?
60471
I have a pretty small embedded system that has Linux on it for a project. Theres normally about 47% disk space used when I run df. However every time I start up the system that number gets bigger until it hits 100%.  I can get it back down by using apt-get clean, but I don't even want to update anything. My system is used in a limited capacity thats already working fine with what is on it, I don't want any upgrades of package updates.  How can I disable whatever apt is doing to check for updates and download stuff every time it starts up?
9477
What is the command to find out how much disk space is being used/remaining?
42202
Every time I install a package:  sudo apt-get install &lt;pkg&gt;   apt-get displays a list of suggested packages. I have simply ignored these so far, but some of these suggestions are actually good (and some are not). I would like to recover all these lists into one big list (so that I can review it and decide if there is some package I want to install), but I could not see them in /var/log/apt/history.log.   That is, I'm looking for something like  list = [] for package in installed_packages:     list.append(package.name) print list
70177
I would like to have a list of the installed software on my machine, with the disk space consumed by them alongside. I would prefer to be able to order by largest/smallest, but that is not a necessity.  I am the sort of person who will install software to try it, and never clean up after myself.  As a result, my 7GB (Windows and my Data are on separate partitions, as well as a swap area) Ubuntu 11.04 partition is suffering, and has started regularly showing warning messages.
5332
For a specific package, can I find out why it is installed?  So, can I see or it's manually installed, or that it is installed as a dependency of another package? Or that it is installed as part of the distro?
12343
I frequently need to check which packages are installed, and I use the following command:  dpkg -l | grep foo  which gives the following output  Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                       Version         Description ii   foo                       &lt;version&gt;         &lt;description&gt;    What does the ii mean?  What other flags are there? How to read the flags? (because the explanation is quite complicated, IMO)   Thanks.
94848
I'm in a situation where the list of orphaned packages to be removed by apt-get autoremove includes a package that I want to keep. Apparently I have accidentally removed a package which was depending on it. How can I now mark the package as explicitly desired, so that apt-get autoremove will not remove it?
113134
I want to save the list of packages that have installed. I figured it might be the best to list all and diff it with the default set.  Edit: Clarification: I don't want to get the list of installed packages that are installed at the moment. Rather I want to get the list of packages that I added since the default install.
5537
When using apt-get install &lt;package_name&gt;, and there are dependencies that need to be downloaded, the terminal outputs names of additional packages and total size, and asks for confirmation before downloading.   But, when dependencies are satisfied and nothing but the named package needs to be downloaded there is no size output and no confirmation.  When using Synaptic, I can see the total size that new packages that will use after installation but no way to see the size that needs to be downloaded, except to go from package to package and use properties to see the compressed size.  I would like to know if there is a way to see the size of a package(s) in terminal and Synaptic prior to downloading and installing it/them?
26167
I'm on a CentOS machine. I updated and installed some packages a few weeks back, but I don't remember the name of every package or the names of every dependency. I used yum.  Can I list the packages on my system by the date they were last installed or updated?
42924
I'd like to find a tool that could tell me which Debian packages on my system have been rarely or never used, perhaps by looking at file lists and access times.  This is to find candidates for deletion from my nearly full hard drive.  I'm not very well informed about the rich ecosystem of desktop GUI tools (I use aptitude); does anyone know if one of those tools, or any other tool, can identify how recently a package has been used?
47404
Is there a way to quickly check the amount of free / used disk space in Ubuntu?  I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but there is no such option.