-1

I read the answer wireless - How can I check the information of currently installed WiFi drivers? - Ask Ubuntu and learn a command

sudo apt-get install -y hardinfo 

then I tried to find the option -y in the man page

me@alpha:~$ man apt-get | grep '-y'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
me@alpha:~$ man apt | grep '-y'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
me@alpha:~$ man install | grep '-y'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
me@alpha:~$ man 'apt install'
No manual entry for apt install

How could I get a manual about options to apt install?

Zanna
  • 70,465
Alice
  • 1,710
  • 3
    The errors here are because grep is interpreting -y as a command line option - you can prevent that by marking the end of options using -- e.g. man apt-get | grep -- '-y' but TBH it's probably more helpful to search interactively within the man page by as described here How to search through a man page? for example – steeldriver Jan 21 '19 at 04:04

1 Answers1

1

The command is actually apt, not install. The man pages can be viewed by

man apt

and

man apt-get

In this specific case, sudo apt install <program-name> asks you if you really want to install before it proceeds. The -y option prevents apt from asking if you want to install - it assumes "yes"

Charles Green
  • 21,339