Skip to content

Added Emerge Package Manager Support - #540

Closed
EmiSunn wants to merge 5 commits into
CosmicScale:mainfrom
EmiSunn:main
Closed

Added Emerge Package Manager Support#540
EmiSunn wants to merge 5 commits into
CosmicScale:mainfrom
EmiSunn:main

Conversation

@EmiSunn

@EmiSunn EmiSunn commented Apr 6, 2026

Copy link
Copy Markdown

I added support for Gentoo Linux's package manager Emerge

EmiSunn added 4 commits April 6, 2026 15:54
gentoo support
Gentoo support
Finally fixed what i did wrong and now fully works as intended
@CosmicScale

Copy link
Copy Markdown
Owner

Thanks! Have you fully tested every feature on Gentoo Linux? Support for Fedora was added some time ago, but unfortunately PSBBN will not boot when installed with that distro. If you can confirm that everything works, I'll be happy to merge.

Could you also add unrar-free? It will be required by the update that's coming soon.

Added Requested unRAR package to install package list and double checked to make sure everything still works!
@EmiSunn

EmiSunn commented Apr 12, 2026

Copy link
Copy Markdown
Author

I added unrar to the list of packages, and went through and checked that it all works.

@CosmicScale

Copy link
Copy Markdown
Owner

Good news that it's fully working. I'm not familiar with Gentoo Linux. What does app-arch/unrar install exactly? I know there are various versions of unrar. The script will check for and use the unrar-free command.

@EmiSunn

EmiSunn commented Apr 12, 2026

Copy link
Copy Markdown
Author

To me it seems to install the free version of unrar, but terminal doesn't respond at all to unrar-free. I am not the most avid user of rar/unrar, but this seems to be what you are looking for.

image

@CosmicScale

Copy link
Copy Markdown
Owner

To me it seems to install the free version of unrar, but terminal doesn't respond at all to unrar-free. I am not the most avid user of rar/unrar, but this seems to be what you are looking for.
image

No, that's the freeware version, we need the open source version. Some distros have unrar on their non-free repository, complicating the install.

ChatGPT says this is what you need:

emerge app-arch/unrar-free

You should then be able to run unrar-free --version and see something like this:

unrar-free 0.1.3

@EmiSunn

EmiSunn commented Apr 13, 2026

Copy link
Copy Markdown
Author

It seems that the version of unrar you are requesting isn't part of any Gentoo package repository, as searching the repos themselves and trying the emerge command that was given was fruitless.

@CosmicScale

Copy link
Copy Markdown
Owner

The update has been released 3404d6e. unrar-free is now a requirement. Not sure what to do about Gentoo Linux going forward. unrar-free is the best solution for Debian, Arch, and Fedora.

@quisys

quisys commented Aug 24, 2026

Copy link
Copy Markdown

Why not use 7zip or unar?

@CosmicScale

Copy link
Copy Markdown
Owner

Why not use 7zip or unar?

Because unrar-free is open source and available in the repositories of all the other supported distributions.

@quisys

quisys commented Aug 24, 2026

Copy link
Copy Markdown

Why not use 7zip or unar?

Because unrar-free is open source and available in the repositories of all the other supported distributions.

7Zip is free and open source, released under the LGPL. It is available in the repos of Debian, Ubuntu, Fedora, Arch, NixOS, and Gentoo.

Unar is a more complicated case, as it was acquired by a private company and is no longer free software. However, all of the distributions that this script supports (and Gentoo), use an older release of unar from when it was still licensed under the LGPL. Namely, 1.10.x, which is the version you will find in all relevant repos.

@CosmicScale

Copy link
Copy Markdown
Owner

Unfortunately, 7zip is not capable of extracting the .rar file in question, it just throws a load of errors. This can happen depending on how the archive was created.

I think the main issue with unar was that it isn't consistently available in the default repositories across all of the supported distributions, which could cause setup to fail.

The original reason I went with unrar-free was its availability on all supported distros and its ability to uncompress the required file.

The file in question:
https://www.mediafire.com/file/rznkr05pci45w5p/Hugopocked_POPStarter_Fixes_%25282023-08-11%2529.rar/file

@quisys

quisys commented Aug 25, 2026

Copy link
Copy Markdown

I got the same error with 7zip, seems like you need a non-free addon.

However, unar handles it perfectly, and it is available in every supported distro's repo as free open-source software, plus Gentoo.

If you still find it problematic since it's unmaintained, there's also bsdtar, which handles the file well (I tested it), and is available on all supported distros, plus Gentoo. It is free open-source software released under the BSD 2-clause license.

I would be happy to make a new PR implementing this guy's emerge support as well as switching over to one of those utilities for extraction; it's ultimately up to you. They are both highly reliable drop-in replacements which are more universal than unrar-free. I'd really rather not fork since you are always adding new features and this is a pretty easy fix that wouldn't impede future development.

To be clear, I am extremely grateful for your work on this project, this is a fantastic piece of software. I hope that this change can be implemented so that all 12 of us Gentoo users can also enjoy it :D

@CosmicScale

Copy link
Copy Markdown
Owner

Thanks! I think bsdtar is the solution. I didn't realise that rar files could be so troublesome lol. If you create a PR, I'll approve it.

@quisys

quisys commented Aug 26, 2026

Copy link
Copy Markdown

Well, that's proprietary software for ya, haha. I'll get that PR going once I test it on Debian and Gentoo.

@CosmicScale

Copy link
Copy Markdown
Owner

Closing as Gentoo Linux will be added with #659.

@CosmicScale CosmicScale closed this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants