NuTyX official Forum

Help => General => Topic started by: ndawka on Wed Dec 13 15:59:38 2023

Title: New Package with Itself as a Package Manager
Post by: ndawka on Wed Dec 13 15:59:38 2023
Hello!

I am planning on adding a few packages to NuTyX. Unfortunately one of them has a non-standard way of installation (downloads a file using curl and installs by running sh on that command) and deinstallation (runs a command via itself with the uninstall flag to uninstall). It also updates via itself by running it with the update flag.

Is there any way to specify what should be run upon the cards install, cards upgrade and cards uninstall commands? And if so, could someone guide me in the right direction?

Thank you in advance!
Title: Re: New Package with Itself as a Package Manager
Post by: Thierry on Fri Dec 15 18:39:58 2023
Good idea

Tell us about those packages, maybe they are easy to build. They can then easily be added into existing depot

Regards,
Thierry
Title: Re: New Package with Itself as a Package Manager
Post by: ndawka on Sat Dec 23 11:39:15 2023
Hi Thierry!

Sorry for a late response  :(

I was planning on adding three packages, actually:

As a side note I tried compiling iftop, but only managed succesfully compiling the stable 0.17 version and only when I followed https://nutyx.org/en/faq#7 (https://nutyx.org/en/faq#7). But I guess that is pretty simple to do and I just am not knowledgeable enough, even though I tried to follow instructions posted on https://nutyx.org/en/documentation#3 (https://nutyx.org/en/documentation#3). I might also need help with Zig for the same reason.

The one I was specifically talking about is the julia package. I has a juliaup utility (https://github.com/JuliaLang/juliaup (https://github.com/JuliaLang/juliaup)), that can be used to easily install, update and remove julia from a machine. The interesting part is, that it can be used to update and remove itself as well. So, generally speaking, I would believe the logic would be to do the following:

These are the solutions I came up with. Perhaps you would do something differently, as NuTyX developer. But if I could always use the latest stable version of julia on my rolling NuTyX release, that would be great!

Regards
Title: Re: New Package with Itself as a Package Manager
Post by: Thierry on Sun Dec 24 18:12:46 2023
Hi ndawka

Thanks a lot for you detailed mail. We will have a look at it. Probably not too complicated to add them (at least the 2 firsts one)
Let's see after the new year is over.
We'll come back to you.

Greatings from Switzerlands

Thierry
Title: Re: New Package with Itself as a Package Manager
Post by: Thierry on Mon Dec 25 19:55:25 2023
Hi Ndawka

So far I could build the iftop and julia-bin packages.

You will find them in cli-extra (julia-bin) and gui-extra (iftop) of the rolling version (not in testing).

I did check the recept in AUR from archlinux. Much too much complicate for my little brain.

Enjoy the lasts 2023 days and wish you a good start in 2024

Thierry
Title: Re: New Package with Itself as a Package Manager
Post by: ndawka on Mon Dec 25 20:44:04 2023
Hi Thierry!

Thank you ever so much for adding these packages! I can compile zig manually from source for the moment being, so no rush with that. But it is great, that you have added the other two!

As far as iftop and julia go, I will test them, when I am back at my work space.

Overall it was a pleasure working with you! Have a great holiday and a happy New Year!  ::)

P.S.
Just wanted to thank you for your work on the NuTyX GNU/Linux distribution! Your user base interaction abilities are on another level.