root@mail:~# apt-get install youtube-dl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
youtube-dl
- You can change the file name of the video using the -o option, like in youtube-dl -o vid.flv "http://www.youtube.com/watch?v=foobar".
- Some videos require an account to be downloaded, mostly because they're flagged as mature content. You can pass the program a username and password for a YouTube.com account with the -u and -p options, like youtube-dl -u myusername -p mypassword "http://www.youtube.com/watch?v=foobar".