yt-dlp install the latest version on freebsd (2024)

NapoleonWils0n

  • Dec 18, 2023
  • #1

Freebsd install the latest version of yt-dlp even if you are running quarterly packages.
Quarterly packages are released every 3 months which means the version of yt-dlp will be quite old

freebsd yt-dlp latest release install

yt-dlp install the latest version on freebsd (2)

cerberus/freebsd/yt-dlp-python-symlink.org at master · NapoleonWils0n/cerberus

cerberus code library. Contribute to NapoleonWils0n/cerberus development by creating an account on GitHub.

yt-dlp install the latest version on freebsd (3)github.com

we will manually download the latest release of yt-dlp

however the the yt-dlp shebang points to python3 so we need to fix issue using a symlink
and alter our shell path so binaries in our home bin directory override those installed in /usr/local/bin

this will allow applications that use yt-dlp in the backend to use the lastest version
instead of the old version installed with pkg

the yt-dlp shebang points to python3
so we need to create a symlink from python 3.9 to python3

obviously you need python3.9 installed

Code:

sudo ln -s /usr/local/bin/python3.9 /usr/local/bin/python3

edit your ~/.zshenv

Code:

vi ~/.zshenv

set your path so that the bin directory in your home comes before /usr/local/bin

Code:

typeset -U PATH pathpath=("$HOME/bin" "/usr/local/bin" "$path[@]")export PATH

this allows us override yt-dlp installed in /usr/local/bin with our newer version install in the bin directory in your home
download yt-dlp from the release on github

yt-dlp install the latest version on freebsd (4)

Releases · yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp

yt-dlp install the latest version on freebsd (5)github.com

make yt-dlp executable

Code:

chmod +x yt-dlp

and move it to the bin directory in your home
if you dont have a bin directory create it

Code:

mv yt-dlp ~/bin

run which yt-dlp

Code:

which yt-dlp

it should output

Code:

/home/username/bin/yt-dlp

instead of

Code:

/usr/local/bin/yt-dlp

check the version

Code:

yt-dlp --version

ouput

2023.11.16

pkg version

Code:

/usr/local/bin/yt-dlp --version

outputs

2023.07.06

update yt-dlp in your bin directory by running

Code:

yt-dlp -U

B

bsdcode

  • Jun 12, 2024
  • #3

Thanks!

In my opinion

www/yt-dlp

should be one of the few exceptional ports getting version upgrades in the quarterly branch. Changes on youtube etc. happen quite often and can render yt-dlp in quarterly completely useless until the next branch. But of course that's for the port maintainer to decide.

OP

NapoleonWils0n

  • Jun 12, 2024
  • Thread Starter
  • #4

yt-dlp package version

Code:

/usr/local/bin/yt-dlp --version

2024.03.10

yt-dlp manually installed version

Code:

yt-dlp --version

2024.05.27

answer = yes

blackbird9

  • Jun 12, 2024
  • #5

I do almost the same as you, but usually I clone the yt-dlp source and then run a 'make install' from within that directory. Your method is a bit cleaner yt-dlp install the latest version on freebsd (8)

Alexander88207

Enthusiast
  • Jun 13, 2024
  • #6

bsdcode said:

Thanks!

In my opinion

www/yt-dlp

should be one of the few exceptional ports getting version upgrades in the quarterly branch. Changes on youtube etc. happen quite often and can render yt-dlp in quarterly completely useless until the next branch. But of course that's for the port maintainer to decide.

Well, Merge from Main is allowed among other reasons as for example bug fixes so this should be not a problem.

Kaminar

  • Jun 13, 2024
  • #7

NapoleonWils0n said:

however the the yt-dlp shebang points to python3 so we need to fix issue using a symlink

I install or update yt-dlp with PIP (

devel/py-pip

) to the home directory as a regular user. I don't need to tweak anything, yt-dlp works without any issues and I have the latest version available.

B

balanga

  • Jun 14, 2024
  • #8

Kaminar said:

I install or update yt-dlp with PIP (

devel/py-pip

) to the home directory as a regular user. I don't need to tweak anything, yt-dlp works without any issues and I have the latest version available.

Exactly how do you install yt-dlp if not as a pkg?

Kaminar

  • Jun 14, 2024
  • #9

balanga said:

Exactly how do you install yt-dlp if not as a pkg?

  • Add ~/.local/bin to PATH variable.
  • Install devel/py-pip.
  • Install yt-dlp to your home directory with command $ pip install --user yt-dlp.

If a new version of yt-dlp is available, you can upgrade to it using the command $ pip install --user --upgrade yt-dlp.

B

balanga

  • Jun 14, 2024
  • #10

Can yt-dlp capture videos embedded in X/twitter posts?

S

scottro

  • Jun 14, 2024
  • #11

I use latest rather than quarterly, and it seems to be the current version.
yt-dlp --version2024.05.27

blackbird9

  • Jun 14, 2024
  • #13

balanga said:

Can yt-dlp capture videos embedded in X/twitter posts?

I tried a couple of times, I could never get it to work...

C

Charlie_

  • Jun 14, 2024
  • #14

balanga said:

Can yt-dlp capture videos embedded in X/twitter posts?

yes.
yt-dlp --list-extractors | grep twitter

Code:

twittertwitter:amplifytwitter:broadcasttwitter:cardtwitter:shortenertwitter:spaces

cracauer@

Developer

  • Jun 14, 2024
  • #15

balanga said:

Can yt-dlp capture videos embedded in X/twitter posts?

At least it used to, yes. That functionality can break every now and then.

blackbird9

  • Jun 14, 2024
  • #16

Maybe I was just unlucky

B

balanga

  • Jun 14, 2024
  • #17

I just tried downloading a Twitter/X video at it worked fine.

You must log in or register to reply here.

yt-dlp install the latest version on freebsd (2024)

References

Top Articles
Crazy Rays Mt Airy Inventory
Varity Vista
Shadle Park big-play combo of Hooper-to-Boston too much for Mt. Spokane in 20-16 win
Treasure Hunt Deals Racine Wi
Between Friends Comic Strip Today
Td Share The Green Referral Credit
Darshelle Stevens Thothub
Best NBA 2K23 Builds for Every Position
What Is The Value Of 53I 9
Oil filter Cross Reference - Equivafiltros
True Or False Security Is A Team Effort
Matka 786 Guessing
Craislist Vt
Lucio Surf Code
888-490-1703
Olive Onyx Amora
Shoulder Ride Deviantart
Where to Buy Fresh Masa (and Masa Harina) in the U.S.
Dmv Rocklin Wait Times
Ebony Pyt Twerk
Craigslist Folding Table
Wdef Schedule
Truist Bank Open Saturday
Dive into Hearts and Adventure: Top 10 Lexi Heart Books to Experience
Excuse Me This Is My Room Comic
Dead By Daylight Subreddit
Ohio Road Construction Map
Beachbodyondemand.com
Springfield Ma Craigslist
Perry County Mugshots Busted
Mary Lou Willey Connors Obituary
8005607994
Eros Cherry Hill
Restored Republic June 16 2023
NWS Southern Region Tropical Webpage
Wisconsin Public Library Consortium
Doculivery Cch
Jeep Graphics Ideas
Winsipedia
Remembering the names of those who died on 9/11
Panama City News Herald Obituary
Www Spherionnetwork.com
Shiny Flower Belinda
Understanding Turbidity, TDS, and TSS
Terrier Hockey Blog
Craigslist Garage Sales Schenectady Ny
Uncg Directions
El Confidencial Vanitatis
Download fallout 3 mods pc.10 essential Fallout 3 mods - Modutech
Top-Filme und Serien mit Maggie Smith
Craigslist Groton
3220 Nevada Terrace Ottawa Ks 66067
Latest Posts
Article information

Author: Francesca Jacobs Ret

Last Updated:

Views: 6012

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Francesca Jacobs Ret

Birthday: 1996-12-09

Address: Apt. 141 1406 Mitch Summit, New Teganshire, UT 82655-0699

Phone: +2296092334654

Job: Technology Architect

Hobby: Snowboarding, Scouting, Foreign language learning, Dowsing, Baton twirling, Sculpting, Cabaret

Introduction: My name is Francesca Jacobs Ret, I am a innocent, super, beautiful, charming, lucky, gentle, clever person who loves writing and wants to share my knowledge and understanding with you.