Atk‎ > ‎Linux‎ > ‎

Youtube-DL

YOUTUBE-DL

USE youtube-dl -U  
to update Youtube-dl



apt-get install youtube-dl
apt-get install libav-tools

youtube-dl --extract-audio --audio-format mp3   http://www.youtube.com/watch?v=O-xlvalecI8
youtube-dl -citk --max-quality FORMAT --extract-audio --audio-format mp3   http://www.youtube.com/watch?v=O-xlvalecI8


#"-k" option keep downloaded videos. Without "-k" option, downloaded video files will be erased after extracting MP3 files.

--max-quality FORMAT #download video in the highest quality format
-c #resume partially downloaded video files
-i #continue on download errors
-t #use title in

youtube-dl --help #see all other options

Make more space to /
you can mv a directory to under you home directory, and make a soft link 

mv /var/cache/apt /home/apt_cache 
ln -s /home/apt_cache /var/cache/apt


Remove outdated Kernel files from /
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge


poista vanhat konfigurointitiedostot
aptitude purge ~c


Comments