Package Managers

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Package Managers

Post by PavelChekov »

Out of curiosity, has anyone implemented package managers in their OSes?
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

Re: Package Managers

Post by klange »

Several.

My first "package manager" was little more than a manifest of files to download. This grew to the point where most packages were a single tarball.

My second iteration introduced a dedicated format for tarballs with an integrated metadata description, but it was written in Python and relied heavily on some tricks the "tarfile" module provided.

When I rewrote my userspace to remove third-party dependencies, I essentially went back to the first concept, though I've consistently used tarballs for package contents. I am actively working to move back to the dedicated package file format.

Image
User avatar
PavelChekov
Member
Member
Posts: 113
Joined: Mon Sep 21, 2020 9:51 am
Location: Aboard the Enterprise

Re: Package Managers

Post by PavelChekov »

Are the tarballs stored on the system and expanded when installed, or are they stored on the internet and retreived?
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!
nexos
Member
Member
Posts: 1078
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Re: Package Managers

Post by nexos »

PavelCheckov wrote:Are the tarballs stored on the system and expanded when installed, or are they stored on the internet and retreived?
The latter. Storing them on the disk would take way too much disk space
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
Post Reply