CentOS 8 installation

Post Reply
crimson30
Posts: 8
Joined: Tue Jan 01, 2019 4:28 pm

CentOS 8 installation

Post by crimson30 »

I used to run mymedia on CentOS 7. I converted the .deb to .rpm and it ran fine.

Now when I try to install the .rpm with CentOS 8, I get:

file / from install of mymedia-1.3.122.0-2.x86_64 conflicts with file from package filesystem-3.8-2.el8.x86_64

Just wondering if anyone has any tips.
Last edited by crimson30 on Mon Mar 09, 2020 5:13 pm, edited 2 times in total.
crimson30
Posts: 8
Joined: Tue Jan 01, 2019 4:28 pm

Post by crimson30 »

I'm interested in using docker/podman, but what I'm doing isn't working.

If I do:
mkdir ~/mymedia
mkdir ~/mymedia/datadir
sudo podman run -d -p 52050:52050 -p 52051:52051 -v ~/Music:/medialibrary -v ~/mymedia/datadir:/datadir bizmodeller/mymediaforalexa

...it pulls, and a container id is shown, but when I try to inspect it, I get:
Error: error getting image "<the id number previously shown>": unable to find a name and tag match for <the id again> in repotags: no such image

...and podman ps displays no containers.
crimson30
Posts: 8
Joined: Tue Jan 01, 2019 4:28 pm

Re: CentOS 8 installation

Post by crimson30 »

I figured it out and hope you don't mind keeping this thread around for others (at least until alien and rpmrebuild are seamless in CentOS 8).

I fixed the rpm with rpmrebuild, deleting the following line under %files:
%dir %attr(0755, root, root) "/"

Since I was having problems with both alien and rpmrebuild under CentOS 8, I created a CentOS 7 virtual machine (very easy with hyper-v) and installed alien and rpmrebuild without issues. On the VM, I downloaded the .deb file from https://www.mymediaalexa.com/ and did the following (you will need to use vi commands to delete the aforementioned line and save/exit):

Code: Select all

sudo yum update
sudo yum install epel-release
sudo yum install alien
cd ~/Downloads
alien --to-rpm --scripts mymedia_1.3.122.0-1_amd64.deb
sudo rpm -Uvh mymedia-1.3.122.0-2.x86_64.rpm
sudo yum --enablerepo=epel-testing install rpmrebuild
rpmrebuild –pe mymedia-1.3.122.0-2.x86_64.rpm
cd ~/rpmbuild/RPMS/x86_64
sudo rpm -Uvh mymedia-1.3.122.0-2.x86_64.rpm
It installed fine on the VM and I moved the rpm over to the CentOS box and it worked just fine after installing it (sudo rpm -Uvh mymedia-1.3.122.0-2.x86_64.rpm) and poking a hole in the firewall.
Post Reply