this post was submitted on 15 Jun 2023
1 points (100.0% liked)

Sysadmin

5627 readers
1 users here now

A community dedicated to the profession of IT Systems Administration

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/158455

I sometimes have to use remote systems that I don't have root access to. I often find that I need to install packages in my home directory, so either I build from source or copy over my own pre-compiled versions.

Recently I've found out about pkgsrc. I'm looking for opinions from anyone who has used it to install packages without root access. Any feedback is useful!

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 2 years ago

My current employer uses pkgsrc as the base libraries for all in house written apps on top of rhel 7. We are 1-2 years into a project to get off of pkgsrc so we can get off of rhel 7 before having to switch to ELS, as it is expensive.

It isn't meant for building off applications, you might be able to make it work. It seems more meant for and works great for embedded systems with firmware images.

The pkgsrc setup at work makes use of hard coded RPATHs full absolute paths. It is never clear which dynamic library is getting loaded at runtime, as even ldd gets it wrong. I have to set LD_DEBUG and run the binary to figure out what's happening. Because it is using RPATHs, which have inherit the RPATHs of the parent, we sometimes end up with different libraries being loading depemding on how the app gets launched.

asdf is popular for usespace tool installs and might work.

TL;DR I don't recommend using pkgsrc for this