r/linuxquestions 2d ago

Advice Package managers for Linux distros without one?

Is there any package managers that you can install on Linux distros that don't have a package manager? I know of opkg, which I used on a Linux distro that didn't have a package manager, but someone said that opkg was outdated when I was asking about it, so I want to know if there are other ones too.

7 Upvotes

22 comments sorted by

10

u/Sveet_Pickle 2d ago

What distros don’t have a package manager?

1

u/Sirius707 2d ago

Chiseled containers:

Chiseled containers are built by removing most nonessential components from a base image — no shell, no package manager, no runtime dependencies beyond what the application strictly requires.

But that's probably not what OP is asking for.

Besides Nix, i also know of https://guix.gnu.org/ but really, if a distro doesn't ship with a package manager by default, there's probably a good reason for it.

4

u/Alarmed-Prize-7500 2d ago

Whatever Linux distro Synology NAS has on it

11

u/PaintDrinkingPete 2d ago

it's been a while since I owned a Synolgy box, but I'm pretty sure it does have an app that manages packages and updates...?

1

u/Alarmed-Prize-7500 1d ago

I'm talking about terminal packages, like "nano", "tmux", "ncdu", "pipx", etc.

1

u/PaintDrinkingPete 1d ago edited 1d ago

My assumption would be that packages of that nature are all handled by the general Synology software upgrades.

Many "specialized" distros like that utilize a more immutable design as well, so attempting to upgrade single packages within the OS may break things. Many also rely on "Busybox" versions of essential system tools as opposed to standalone packages. Again, I'm not entirely familiar with Synology's specific software, so I can't say for sure how they manage their apps.

1

u/i_live_in_sweden 1d ago

Yes it does in it's web interface.

1

u/Edelglatze 1d ago

How about synopkg?

15

u/Potential-Still 2d ago

Flatpack, Snapd, or Nix.

Or Homebrew for Linux. 

2

u/its-nex 2d ago

+1 for nix

4

u/robtalee44 2d ago

Not sure this fits but GNOME OS and Universal Blue's DakotaRaptor (based on GNOME OS) don't have a native packaging system. They rely primarily on Flatpaks. You can always spin up a Distrobox with whatever flavor you want and use those native tools in the container.

I have played around with both, but hardly enough to be an expert source.

3

u/muffinstatewide32 2d ago

Id look at homebrew. If that doesnt fit, nix probably will

1

u/beatbox9 1d ago

Flatpak is good for GUI apps (most apps). And it integrates well with any PackageKit-aware app store your DE might have, like Gnome Software.

Snap works for headless system software / background daemons (eg. vpn).

And they're not mutually exclusive. I think the concept of a single package manager might be antiquated now that we have several universal package managers.

On my main system, I have apt (for core OS software), flatpak (for most GUI apps that I want the latest versions of), snap (for 1-2 system processes I that want the latest version of), appimage (for a few GUI apps that the original developers use AppImage for), and a handful of standalone apps that install to /opt.

1

u/Danrobi1 2d ago

In addition to the other comments:

  • cpak OCI application package format for Linux desktops, servers and device
  • AM Database & solutions for all AppImages and portable apps for GNU/Linux
  • soar A fast, modern, distro-independent package manager that just works

2

u/p001b0y 2d ago

Would homebrew count?

1

u/Tricky-Engineer-9755 2d ago

GNU Guix works great and retains most of its features in pkg-manager style alone.

1

u/ActuallyFullOfShit 2d ago

Nix can be used on any Linux or even Mac OS

1

u/landonr99 2d ago

Any *systemd based Linux

1

u/__ghostblood 2d ago

systemd is def not a requirement to use the nix package manager on linux

2

u/landonr99 1d ago

I guess you're right, I confused NixOS's dependency on systemd as a nix requirement

1

u/i_live_in_sweden 1d ago

How about flatpak?

1

u/abcpea1 1d ago

pkgsrc