0

When using yum install firefox it will ask me for confirmation if I would really like to do it, but apt-get install firefox it will not ask me. Is there a way that it will ask me? Thank you

andrej
  • 547
  • 1
  • 6
  • 21
  • `apt-get` will generally ask for confirmation, unless you have configured it not to. Check `/etc/apt/apt.conf`. – twalberg Jun 16 '14 at 20:06

2 Answers2

4

apt-get will only ask for confirmation in certain cases (if other packages are pulled or if installed packages are modified or removed); see this superuser answer for details.

To always see what apt-get is going to do before actually installing it, you may use the -s (simulate) flag.

apt-get -s install firefox

apt-get will tell you what it would do when installing firefox, but would not actually do it. If you are satisfied you can then run the install command again without the simulate flag.

Community
  • 1
  • 1
0range
  • 2,088
  • 1
  • 24
  • 32
0

apt-get by default needs root privileges to run. If you type apt-get install firefox it should ask you about root privileges. sudo apt-get firefox should prompt you for your password. So as you can see, it's an indirect way of asking for confirmation. It cannot install anything unless you confirm your password.

Sergiy Kolodyazhnyy
  • 938
  • 1
  • 13
  • 41