[RPM] Fedora package

Support for Ubuntu and other Desktop Linux distributions
Post Reply
User avatar
rednoah
The Source
Posts: 17869
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[RPM] Fedora package

Post by rednoah » 04 Apr 2019, 07:10

FileBot provides its own YUM repository, so you can install and upgrade FileBot via sudo dnf install filebot.


The installer/rpm.sh will add the repository and install FileBot for you:

Code: Select all

bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/rpm.sh)"


Alternatively, you can manually add the repository:

1. Add repository

Code: Select all

sudo dnf config-manager --add-repo https://raw.githubusercontent.com/filebot/plugins/master/yum/universal-jdk8.repo
2. Enable repository

Code: Select all

sudo dnf config-manager --set-enabled filebot --dump
3. Install dependencies

Code: Select all

sudo dnf install java-1.8.0-openjdk java-1.8.0-openjdk-openjfx
sudo dnf install jna
sudo dnf install mediainfo p7zip p7zip-plugins
4. Install FileBot

Code: Select all

sudo dnf install filebot
:idea: Please read the FAQ and How to Request Help.

b2un0
Posts: 10
Joined: 09 Jun 2014, 10:41

Re: [RPM] Fedora package

Post by b2un0 » 10 May 2019, 13:58

Error on CentOS 7.

Code: Select all

  - nothing provides java-1.8.0-openjdk-openjfx needed by filebot-4.8.5-universal.jdk8.noarch
i doesn't understand why the .rpm package have a dependency on openjfx.
the .deb packages only recommends openjfx.

Im searching for 2 hours for a CentOS 7 Repo which provide the "java-1.8.0-openjdk-openjfx" as package - i give up.

User avatar
rednoah
The Source
Posts: 17869
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [RPM] Fedora package

Post by rednoah » 10 May 2019, 14:19

The RPM package is tested on Fedora.

Since some of these dependency are optional, or can be provided by the user manually, Requires is not ideal, but since there's no Recommends AFAIK, this is what we've got:

Code: Select all

Requires:       java-1.8.0-openjdk
Requires:       java-1.8.0-openjdk-openjfx
Requires:       jna
Requires:       mediainfo
Requires:       p7zip
Requires:       p7zip-plugins

EDIT:

I've found some other key words in some other docs. I guess Recommends is possible. Will use Recommends for upcoming builds.
:idea: Please read the FAQ and How to Request Help.

b2un0
Posts: 10
Joined: 09 Jun 2014, 10:41

Re: [RPM] Fedora package

Post by b2un0 » 10 May 2019, 14:32

Okay, thanks. i will try Fedora for my Dockerfile..

*edit*

yes, this works, thank you!

User avatar
rednoah
The Source
Posts: 17869
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [RPM] Fedora package

Post by rednoah » 24 Mar 2020, 04:50

rednoah wrote:
10 May 2019, 14:19
The RPM package is tested on Fedora.

Since some of these dependency are optional, or can be provided by the user manually, Requires is not ideal, but since there's no Recommends AFAIK, this is what we've got:

Code: Select all

Requires:       java-1.8.0-openjdk
Requires:       java-1.8.0-openjdk-openjfx
Requires:       jna
Requires:       mediainfo
Requires:       p7zip
Requires:       p7zip-plugins
Using Recommends now leads to users not installing the recommended dependencies:
* viewtopic.php?t=11605
* viewtopic.php?t=11569
:idea: Please read the FAQ and How to Request Help.

Idu1p
Posts: 1
Joined: Yesterday, 22:46

Re: [RPM] Fedora package

Post by Idu1p » Yesterday, 22:58

Heads up: the version 4.9 RPM does not contain a "filebot" file anymore. The install section contains it, but the file is missing.

Code: Select all

$ rpm -ql filebot | grep filebot$
/etc/bash_completion.d/filebot
/usr/share/filebot

$ rpm -q --scripts filebot
postinstall scriptlet (using /bin/sh):
ln -sf /usr/share/filebot/bin/filebot.sh /usr/bin/filebot
ln -sf /usr/lib/java/jna.jar /usr/share/filebot/jar/jna.jar
preuninstall scriptlet (using /bin/sh):
rm -f /usr/bin/filebot
rm -f /usr/share/filebot/jar/jna.jar
System info:

Code: Select all

$ /usr/share/filebot/bin/filebot.sh -script fn:sysinfo
FileBot 4.9.0 (r7234)
JNA Native: groovy.lang.MissingPropertyException: No such property: com for class: Script1
Possible solutions: log, now
MediaInfo: java.lang.NoClassDefFoundError: Lcom/sun/jna/Pointer;
p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (306A9),ASM,AES-NI)
unrar: java.io.IOException: Cannot run program "unrar": error=2, No such file or directory
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: java.lang.NoClassDefFoundError: com/sun/jna/Platform
Unicode Filesystem: OK
Script Bundle: 2020-03-16 (r625)
Groovy: 3.0.2
JRE: OpenJDK Runtime Environment 1.8.0_242
JVM: groovy.lang.MissingPropertyException: No such property: com for class: Script1
Possible solutions: log, now
CPU/MEM: 8 Core / 3.7 GB Max Memory / 106 MB Used Memory
OS: Linux (amd64)
HW: Linux server1.internal 5.5.13-200.fc31.x86_64 #1 SMP Wed Mar 25 21:55:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
STORAGE: btrfs [/] @ 2.0 TB | btrfs [/mnt/pool1] @ 12 TB
DATA: /home/tvuser/.filebot
Package: RPM
License: FileBot License xxxxxxx (Valid-Until: 2020-09-11)
Done ヾ(@⌒ー⌒@)ノ
I can run the script directly for some more information. This may or may not be useful to you, but I thought I might include it.
Console output snippet:

Code: Select all

Processed 0 files
com/sun/jna/Platform
java.lang.NoClassDefFoundError: com/sun/jna/Platform
	at net.filebot.StandardRenameAction$6.rename(Unknown Source)
	at net.filebot.StandardRenameAction$2.rename(Unknown Source)
	at net.filebot.cli.CmdlineOperations.renameAll(Unknown Source)
	at net.filebot.cli.CmdlineOperations.renameSeries(Unknown Source)
	at net.filebot.cli.CmdlineOperations.rename(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runCommand(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.sun.jna.Platform
	... 8 more

Error (o_O)

Post Reply