I see some linux page says how to install the key:
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
What is "-O -" in wget?
It seems related with "add -".
How these works?
Thank you~
I see some linux page says how to install the key:
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
What is "-O -" in wget?
It seems related with "add -".
How these works?
Thank you~
I used ** to indicate it is important. from
man wget
and from
man apt-key
this explains your command.
The option
-O -
prints the downloaded file to standard output (instead of a ordinary file) and the-
option inapt-key
reads from standard input. The command is equivalent to the two commands:When you chain both commands you don't have to bother with saving a file and usually the command is shorter.