TheLocehiliosan / yadm

Yet Another Dotfiles Manager

Home Page:https://yadm.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu 20.04 in WSL provides old version

xandora opened this issue · comments

This issue is about

  • Man pages or command-line usage
  • Website documentation
  • Packaging
  • Other

Describe the issue

When installing on Ubuntu 20.04 running on WSL2, the only packaged version is 2.3.0-2. This causes issues when attempting to yadm clone after setting git to use main as the new default branch name as experienced in #385 .

$ apt list yadm
Listing... Done
yadm/focal,now 2.3.0-2 all [installed]

yadm's version is too old on ubuntu, Alternate Files extension not support extension

How can I get the newest version of yadm on ubuntu?

How can I get the newest version of yadm on ubuntu?

Okay forget this I found a way: https://yadm.io/docs/install#clone

Just download the git repo and symlink yadm to ~/bin/yadm:

git clone https://github.com/TheLocehiliosan/yadm.git ~/.yadm-project
ln -s ~/.yadm-project/yadm ~/bin/yadm

Or if you just want the single file:

wget -O ~/bin/yadm https://raw.githubusercontent.com/TheLocehiliosan/yadm/HEAD/yadm
chmod +x ~/bin/yadm

I believe 22.04 (Jammy Jellyfish) includes and updated version of yadm (3.1.1).

You might be able to upgrade WSL to use that, but I certainly don't advise doing that upgrade just to get yadm. As others have commented above, there are other ways to get the newer code.