this post was submitted on 07 Mar 2024
23 points (92.6% liked)

Linux

48741 readers
1144 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Found out the version of neovim on PopOS was fairly outdated, and I would like to use more recent versions. So I am confronted with these choices : Do I go for PPAs, or is distrobox fine for this purpose? While distrobox works well, I am worried that mismatches in packages could cause issues.

About flatpak: it is a no-go for me in this usecase, since it takes quite a bit of configuration to "escape" the sandbox.

top 10 comments
sorted by: hot top controversial new old
[–] somethingsomethingidk@lemmy.world 8 points 9 months ago (1 children)

If you run in distrobox you should not have issues with dependencies

[–] someacnt_@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

Yeah, just tried and there were no issues with dependencies. However, it seems like language servers are not working well. Gotta see how much of a hassle it is to go through it. EDIT: It was missing gcc, installed it and it works! It was less hassle than I expected, thank you!!

[–] doomkernel@sopuli.xyz 6 points 9 months ago (1 children)

You can use bob (a neovim version manager). It requires rustup though

[–] lautan@lemmy.ca 1 points 8 months ago

This is the best option

[–] ksp@sh.itjust.works 6 points 9 months ago

I'be been having the same issue on mint, I did build it from source but it's not the most convenient. I did afterwards use a fedora atomic (immutable) and a distrobox with fedora classic on it. I think it is the most convenient if you are ready to use containers. You will have to export it to the host and it will use the configuration from your home folder

If I remember well, the PPA is outdated too !

[–] Throwaway1234@sh.itjust.works 3 points 9 months ago

Distrobox FTW!

While distrobox works well, I am worried that mismatches in packages could cause issues.

That should not be a thing in the first place. Though, if you prefer to designate a different home folder for the distrobox container, then it's worth noting that Distrobox does offer support for that.

[–] Shareni@programming.dev 2 points 9 months ago

I'd suggest nix and home-manager. I just added the following to my home.nix, and lazyvim works perfectly fine on nvim 0.9.5 (0.9.4 on the stable branch):

  home.packages = with pkgs;
    ([
       ...
      #neovim
      #git,make,npm,node,and ripgrep are already installed
      neovim
      python311
      python311Packages.pip
      # python311Packages.pynvim
      luajitPackages.luarocks
      cargo
      # lunarvim
      lazygit
      tree-sitter
      nerdfonts
      ....
    ]);
[–] spacemanspiffy@lemmy.world 1 points 9 months ago

I ran in to this on Debian on WSL on my work machine. Decided to just build Neovim from source.

[–] hunger@programming.dev -3 points 9 months ago (1 children)

Why don't you download the latest release/nightly from github and unpack it somewhere?

[–] someacnt_@lemmy.world 6 points 9 months ago

I tried that, but

  1. It requires more configuration, the executable was not able to recognize lua-5.1 out-of-the-box.
  2. This approach excludes auto-updates.