How to install RPM printer drivers to /usr/bin, /usr/lib, and usr/local

Tried to install printer drivers using rpm-ostree, received opendir(local): No such file or directory error message.
Tried sudo dnf install, same error message.
I assume this is because of usr/local being a link, so I tried extracting the files from the rpm to install manually, but of course folders are read only.
Tried mounting drive from debian to copy over manually, but not finding the right folders 'cause I don’t understand the structure of a atomic filesystem yet.
And even if I did, everything would get wiped when I updated anyway.
So, is there a way to install my (Brother DCP-7020) printer drivers on Bazzite??

Huh, that’s weird. I can do rpm-ostree install "<path-to-rpm>" just fine. Even in the case of weird linking, like the /opt folder I messed around with one time, it should just say it installed it. Are you sure you put in the full path correctly and (if it has spaces) in quotes?

Other than that, the alternative is to install it in a distrobox, I think.

Yeah, I don’t have any problem with any other rpm I’ve layered in, just this one. I think it’s because it is trying to write to 2 read only folders and a folder that’s linked to var.
I installed it with dnf in a distrobox container just to see if it would install correctly, and it did. So I know it’s not corrupted.
But I have no idea how I would install a printer driver into the main OS through a distrobox. Any suggestions on how to do that??

Found a solution of sorts.
I was able to use a ppd file from openprinting.org to run the printer functions mostly. And installed vuescan to use the scanner.
It’s not 100%, but it works well enough for my purposes.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.