Skip to content

unpack - unrar not working. unrar-free is the package. #2988

@wseedbox

Description

@wseedbox

Please complete the following tasks.

  • Web browser cache cleared
  • Link provided to install script if applicable
  • Not using broken rtinst install script
  • Web browser, ruTorrent, PHP and OS version provided

Tell us about your environment

Chrome...newest
ruTorrent 5.2.10
Fedora 42

php --version
PHP 8.4.13 (cli) (built: Sep 23 2025 14:14:32) (NTS gcc x86_64)
Copyright (c) The PHP Group
Built by Fedora Project
Zend Engine v4.4.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.13, Copyright (c), by Zend Technologies

Tell us how you installed ruTorrent

#FROM fedora:latest
# Create the builder one to build stuff!
FROM registry.fedoraproject.org/fedora:latest AS builder

# install some stuff
RUN dnf clean metadata && \
    dnf -y update && \
    dnf install -y git cmake gcc g++ && \
    dnf clean all

WORKDIR /opt
RUN git clone https://github.com/tomcdj71/dumptorrent.git && \
    cd dumptorrent && \
    cmake -B build/ -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release -S . && \
    cmake --build build/ --config Release --parallel $(nproc) && \
    chmod +x build/dumptorrent build/scrapec

#FROM fedora:latest
FROM registry.fedoraproject.org/fedora:latest

# creature comforts
ENV LANG en_US.UTF-8
ENV CONTAINER docker
ENV USER root
ENV HOME /root
ENV TERM xterm
WORKDIR /root
ADD bashrc /root/.bashrc

#RUN setenforce 0

RUN dnf clean metadata && \
    dnf install -y iproute net-tools vim-enhanced iputils procps wget git curl traceroute systemd \
                    nginx rtorrent lighttpd lighttpd-fastcgi php php-cgi php-fpm php-mbstring unzip unrar \
                    ffmpeg mediainfo python python3-cloudscraper sox && \
    dnf -y update && \
    dnf clean all

# Add the rtorrent user
RUN groupadd -g 1002 xxx && groupadd -g 891 rtorrent && useradd -u 891 -g xxx rtorrent && \
    usermod -a -G xxx lighttpd

COPY --from=builder /opt/dumptorrent/build/dumptorrent /opt/dumptorrent/build/scrapec /usr/local/bin/

ADD fastcgi.conf /etc/lighttpd/conf.d/fastcgi.conf
ADD scgi.conf /etc/lighttpd/conf.d/scgi.conf
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
ADD modules.conf /etc/lighttpd/modules.conf

RUN cd /var/www && git clone https://github.com/Novik/ruTorrent.git rutorrent && \
    chown -R lighttpd:lighttpd rutorrent
ADD rutorrent-config.php /var/www/rutorrent/conf/config.php
RUN chown lighttpd:lighttpd /var/www/rutorrent/conf/config.php

# Setup php-fpm
ADD php-fpm-www.conf /etc/php-fpm.d/www.conf

# For some reason /var/log/lighthttpd is not owned by lighthttpd
RUN chown lighttpd:lighttpd /var/log/lighttpd

# Setup the rtorrent run dir
RUN mkdir /run/rtorrent && \
    chown rtorrent:lighttpd /run/rtorrent

ADD rtorrent.service /etc/systemd/system

# Enable the services
RUN systemctl enable rtorrent lighttpd php-fpm

CMD ["/sbin/init"]

Describe the bug

unrar is not working/unpacking on Fedora 42

I am getting these errors:

Diagnostics
unrar: invalid option -- 'a'
Try `unrar --help' or `unrar --usage' for more information.
unrar: invalid option -- 'a'
Try `unrar --help' or `unrar --usage' for more information.

It seems that unrar in Fedora 42 is using unrar-free. This doesn't seem to have the '-a' argument.

[root@media-apps ~]# unrar  --help
Usage: unrar [OPTION...] ARCHIVE [FILE...] [DESTINATION]
Extract files from rar archives.

  -P, --print                Print archive files to stdout
  -x, --extract              Extract files from archive (default)
  -t, --list                 List files in archive
  -f, --force                Overwrite files when extracting
      --extract-newer        Only extract newer files from the archive
      --extract-no-paths     Don't create directories while extracting
  -i, --outfile=FILE         File to print the messages to (nul is short for
                             /dev/null, err is short for /dev/stderr)
  -p, --password             Decrypt archive using a password
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version
[root@media-apps ~]# unrar  -V
unrar-free 0.3.1

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions