Skip to content

unrar and rar no longer supported in nextcloud aio #109

@leosamuele221

Description

@leosamuele221

Hi,
I'm using nextcloud AIO, the nextcloud container uses Alpine Linux v3.18 that dont support unrar (https://pkgs.alpinelinux.org/packages?name=unrar&branch=v3.18&repo=&arch=&maintainer=)
In fact, support for unrar in alpine linux was removed from v3.15 and now is totally abandoned

Very similar story for php rar extension:
nextcloud aio uses PHP 8.1 while rar extension is supported at most by PHP 8.0 (https://pecl.php.net/package-changelog.php?package=rar see v4.2.0)

There is actually no alternatives to this in alpine linux 3.18
I suggest to move everything to p7zip wich can only extract rar (https://7-zip.org/) but it's better than nothing.

Also this is my error log when trying to install php rar extension:

Installing PHP extension rar ...
error: /usr/src/php/ext/rar does not exist

usage: /usr/local/bin/docker-php-ext-install [-jN] [--ini-name file.ini] ext-name [ext-name ...]
   ie: /usr/local/bin/docker-php-ext-install gd mysqli
       /usr/local/bin/docker-php-ext-install pdo pdo_mysql
       /usr/local/bin/docker-php-ext-install -j5 gd mbstring mysqli pdo pdo_mysql shmop

if custom ./configure arguments are necessary, see docker-php-ext-configure

Possible values for ext-name:
bcmath bz2 calendar ctype curl dba dl_test dom enchant exif ffi fileinfo filter ftp gd gettext gmp hash iconv imap intl json ldap mbstring mysqli oci8 odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl zend_test zip

Some of the above modules are already compiled into PHP; please check
the output of "php -i" to see which modules are already loaded.
Could not install rar from core. Trying to install from PECL...
error: 'rar' does not exist

usage: /usr/local/bin/docker-php-ext-enable [options] module-name [module-name ...]
   ie: /usr/local/bin/docker-php-ext-enable gd mysqli
       /usr/local/bin/docker-php-ext-enable pdo pdo_mysql
       /usr/local/bin/docker-php-ext-enable --ini-name 0-apc.ini apcu apc

Possible values for module-name:
apcu.so bcmath.so bz2.so exif.so gd.so gmp.so imagick.so imap.so intl.so ldap.so memcached.so opcache.so pcntl.so pdo_pgsql.so pgsql.so redis.so smbclient.so sodium.so sysvsem.so zip.so

Some of the above modules are already compiled into PHP; please check
the output of "php -i" to see which modules are already loaded.
Could also not install rar from PECL. The PHP extensions was not installed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions