[SOLVED] is there a way to change the minimum size for apt to ask before installing somethin?
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is there a way to change the minimum size for apt to ask before installing somethin?
I asked this is in other places before, never on it's own though. When installing something with apt-get install pkgname, if the total size for it and dependencies is below a certain amount it installs without prompting for a yes/no. Is there a way to change this to always prompt before installing something?
are you sure that the yes/no prompt is triggered by a size constraint? I had always been under the impression that the question was asked if dependencies needed to be installed. Please note that this was just my assumption, and am actually curious to know what the algorithm really is.
I have never observed such behaviour. The only time APT does not ask for permission is if I have just installed something related. For example; I install one or more packages of an application, then decide to install another package from that application. (I have not yet logged out of the root account.) APT will install the new package without asking for permission. Any other time it asks, regardless of the package's size. At least, that is my experience.
are you sure that the yes/no prompt is triggered by a size constraint? I had always been under the impression that the question was asked if dependencies needed to be installed. Please note that this was just my assumption, and am actually curious to know what the algorithm really is.
Cheers,
Evo2.
I'm pretty sure it's the size, but I could be mistaken. It's happened on packages with and without dependencies, so I'm not sure. The only thing that I have noticed is the total install size (with dependencies and core files) of a program was less than a few hundred MB, and it didn't prompt with a "Yes/no" for the install. I don't know if the size was a coincidence or not.
Quote:
Originally Posted by Randicus Draco Albus
I have never observed such behaviour. The only time APT does not ask for permission is if I have just installed something related. For example; I install one or more packages of an application, then decide to install another package from that application. (I have not yet logged out of the root account.) APT will install the new package without asking for permission. Any other time it asks, regardless of the package's size. At least, that is my experience.
It prompts me in the sense of "This is what we're installing, is this ok? Yes/no?" And when I'm installing things I do so with sudo. It's happened as the first thing installed, and as a series of individual package installs I've done.
I'm pretty sure it's the size, but I could be mistaken. It's happened on packages with and without dependencies, so I'm not sure. The only thing that I have noticed is the total install size (with dependencies and core files) of a program was less than a few hundred MB, and it didn't prompt with a "Yes/no" for the install. I don't know if the size was a coincidence or not.
I was mistaken here, less that a few hundred KB and it doesn't prompt.
Trying to install Blackbox just for testing asks for permission, since a dependency will be pulled in (total download size 257kB, size on disk 904kB).
Trying to install nano on the same system results in an automatic install, since no dependencies are needed (total download size 582kB, installed size 1702kB).
So it is indeed the number of dependencies, not the size, and since nano is not in anyway related to the Blackbox WM Randicus' explanation seems to be wrong.
From what I've seen, apt will prompt if the package/dependency wasn't specified with the apt-get command, or if it's coming from an unverified repository. So if you apt-get install your package and dependencies at the same time, you shouldn't be prompted.
From what I've seen, apt will prompt if the package/dependency wasn't specified with the apt-get command, or if it's coming from an unverified repository. So if you apt-get install your package and dependencies at the same time, you shouldn't be prompted.
So, if it's all coming from the same repo it shouldn't prompt? Sounds alright then. Eitherway, is there a way to make it ALWAYS prompt?
So, if it's all coming from the same repo it shouldn't prompt? Sounds alright then. Eitherway, is there a way to make it ALWAYS prompt?
Even if it's coming from the same repository, apt will prompt you if additional packages need to be installed other than the ones you specified during the command.
Even if it's coming from the same repository, apt will prompt you if additional packages need to be installed other than the ones you specified during the command.
Ok, but what I'm saying is even if the only package installing is the one I specified, there has to be a way to make it prompt for a yes/no. Is there?
If you just want to see what it is going to do, use the -s (simulate) switch.
yes but then I'd have to reenter the command minus the -s and that's just tedious. Plus it doesn't accomplish what I was wanting to do. All I want it to do is prompt me for a yes/no regardless of the number of packages I want to install.
So you want to tell apt to install a package and then have apt ask if you really want to install that package??
I fail to see why you would want that - seems tedious...
So you want to tell apt to install a package and then have apt ask if you really want to install that package??
I fail to see why you would want that - seems tedious...
Tedious though it may be, reasons I do have. But in all seriousness, it's mostly for the sake of knowing how I would go about it. Is there a way?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.