I'm seeing the -y
flag being used in apt install -y
a lot today but when I do man install
no -y
flag is described.
Am I missing something?
aptcommand linelinux
I'm seeing the -y
flag being used in apt install -y
a lot today but when I do man install
no -y
flag is described.
Am I missing something?
Best Answer
When you invoke
apt install …
the command isapt
, notinstall
.man install
will show you the manual forinstall
which is a different command. The right place to start isman apt
.Some commands in a form
foo bar anything …
may have manuals available underman foo-bar
. E.g.man btrfs-subvolume
runs well, butbtfrs-subvolume
(as a command) doesn't exist, the syntax isbtrfs subvolume …
.This is not the case with
apt
though; in my Debian there is noman apt-install
. Yetman apt
saysinstall (apt-get(8))
where it explainsapt install
, so now we know we should readAnd this is it,
-y
is explained there: