TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.92k stars 176 forks source link

Ubuntu 20.04 in WSL provides old version #419

Closed xandora closed 1 year ago

xandora commented 2 years ago

This issue is about

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]
canghai118 commented 1 year ago

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

daribock commented 1 year ago

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

daribock commented 1 year ago

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
rasa commented 1 year ago

Or if you just want the single file:

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

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.