How to get extract here, extract to and compress options in Nemo file manager context menu
  • If by installing nemo-fileroller you don't get the extract here, extract to and compress options in Nemo file manager, just follow this just like I did.

    First of all I installed file-roller. Just open the terminal and type:

    sudo apt-get update
    sudo apt-get install file-roller

    Then i went to /usr/share/nemo/actions (with root privileges) and created 3 files. The first:

    - I named it compress.nemo_action
    - I opened it in a text editor and entered:

    [Nemo Action]
    Active=true
    Name=Compress...
    Comment=compress %N
    Exec=file-roller -d %F
    Icon-Name=gnome-mime-application-x-compress
    Selection=any
    Extensions=any;
    Quote=double

    and saved.

    The second:
    - I named it extract-here.nemo_action
    - I opened it in a text editor and entered:

    [Nemo Action]
    Active=true
    Name=Extract here
    Comment=Extract "%f" here
    Exec=file-roller --extract-here %F
    Icon-Name=gnome-mime-application-x-compress
    Selection=notnone
    Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz;apk;
    EscapeSpaces=true
    Quote=double

    and saved.

    The third:
    - I named it extract-to.nemo_action
    - I opened it in a text editor and entered:

    [Nemo Action]
    Active=true
    Name=Extract to...
    Comment=Extract to...
    Exec=file-roller -f %F
    Icon-Name=gnome-mime-application-x-compress
    #Stock-Id=gtk-cdrom
    Selection=any
    Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar;7z;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz;apk;
    Quote=double

    and saved.

    After I typed on the terminal:

    nemo -q

    I had all the compression options I needed and fully working. For some reason even with nemo-fileroller installed I could not get the right-click menus.