Skip to content

How to enable PDF to CBR in docker? #4657

@op4lat

Description

@op4lat

I am excited to see that the conversion of CBR has been added, but how do I enable it? The release notes say PDF to CBR (requires you to manually install rar due to license requirements) but I couldn't find instructions of how to do so. I entered the container command line and tried:

apk update
apk add --no-cache unrar

but I got

ERROR: unable to select packages:
  unrar (no such package):
    required by: world[unrar]

or I am supposed to do:

# Update the package list
apk update

# Install necessary build tools
apk add --no-cache --virtual build-dependencies gcc musl-dev

# Download the source code for both rar and unrar
wget https://www.rarlab.com/rar/rarlinux-x64-711.tar.gz

# Extract the archive
tar xzvf rarlinux-x64-711.tar.gz -C /tmp

# Copy the binaries to a system directory
cp /tmp/rar/rar /usr/local/bin/
cp /tmp/rar/unrar /usr/local/bin/

# Clean up
rm -rf /tmp/rar rarlinux-x64-711.tar.gz
apk del build-dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions