LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-02-2014, 01:19 AM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
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?
 
Old 06-02-2014, 03:19 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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.
 
Old 06-02-2014, 03:24 AM   #3
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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.
 
Old 06-02-2014, 01:38 PM   #4
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by evo2 View Post
Hi,

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 View Post
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.

Last edited by slacker_; 06-02-2014 at 01:42 PM.
 
Old 06-03-2014, 12:43 AM   #5
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by slacker_ View Post
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.
 
Old 06-03-2014, 01:53 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I too was under the impression that it was dependency related.

If you do apt-get install <package> it just goes ahead and does it.

If <package> requires (or recommends) <package-b> and <package-c> that were not specifically requested in the initial command, then it will ask.

From memory and not tested (I usually use the aptitude interface anyway).

Might check later if I get time.
 
Old 06-03-2014, 05:55 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 06-03-2014, 08:53 AM   #8
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,120
Blog Entries: 2

Rep: Reputation: 259Reputation: 259Reputation: 259
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.
 
Old 06-03-2014, 02:12 PM   #9
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by replica9000 View Post
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?
 
Old 06-03-2014, 10:48 PM   #10
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,120
Blog Entries: 2

Rep: Reputation: 259Reputation: 259Reputation: 259
Quote:
Originally Posted by slacker_ View Post
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.
 
Old 06-04-2014, 12:58 AM   #11
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
If you just want to see what it is going to do, use the -s (simulate) switch.
 
Old 06-04-2014, 02:01 PM   #12
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by replica9000 View Post
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?
 
Old 06-04-2014, 02:03 PM   #13
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by descendant_command View Post
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.
 
Old 06-04-2014, 05:35 PM   #14
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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...
 
Old 06-04-2014, 05:47 PM   #15
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by descendant_command View Post
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?
 
  


Reply

Tags
apt, apt-get, debian


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimum Partition Size paldebojyoti Linux - General 12 05-24-2022 09:00 AM
Change Sector Size from 2048 to 512 for syslinux installing ? mbzadegan Linux - Hardware 4 02-08-2012 06:44 AM
Minimum file size to report a size in vsftpd log anon091 Linux - Server 1 10-12-2011 06:24 PM
what is the minimum partition size drkstr Linux - General 7 08-27-2006 01:04 AM
minimum partition size Ashraf Linux - General 4 10-16-2002 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration