Page 1 of 1

How to compress files in Easy?

Posted: Sat Jun 24, 2023 5:22 am
by szept

How do I compress folder with files in Easy? I've tried dragging as well as locating the folder with ADD, but it didn't work. Also, is there a way to compress in parts of e.g. 1GB?

Image


Re: Compressing

Posted: Sat Jun 24, 2023 7:41 am
by kris777

I had the same problem of course you can probably compress in terminal from the command line. But there's probably a better graphical way...and I found a program: packit
commandline
viewtopic.php?t=6868&hilit=packit


Re: Compressing

Posted: Sat Jun 24, 2023 11:14 am
by BarryK

Open a terminal where the folder is, then:

Code: Select all

# dir2tgz <folder name>

To expand it, either click on the tarball, or:

Code: Select all

# tar -xf <folder name>.tar.gz

rar compression

Posted: Sat Jun 24, 2023 4:17 pm
by don570

If you want to split up an archive I would use 'rar'

from rar man page
https://ss64.com/bash/rar.html

Code: Select all

Examples
Create a new rar archive archive.rar containing file1.dat, file2.dat, file3.dat:

$ rar a archive.rar file1.dat file2.dat file3.dat

Create a new rar archive ss64.rar containing the directory music:

$ rar a ss64.rar music/

Create a rar archive that splits the file/files into multiple parts of equal size (50MB):

$ rar a -v50M -R ss64.rar music/

____________________________________________


Re: Compressing

Posted: Sun Jun 25, 2023 6:25 am
by szept
BarryK wrote: Sat Jun 24, 2023 11:14 am

Open a terminal where the folder is, then:

Code: Select all

# dir2tgz <folder name>

To expand it, either click on the tarball, or:

Code: Select all

# tar -xf <folder name>.tar.gz

Ok, so I thought I'll try terminl first, without trying to get alternative apps.

I've found some commands to split up the compressed file and I tried to combine them with the above, but it didn't work.

Code: Select all

# dir2tgz <folder name> | split -b 1024m - win7_split.gz_

I mean first I tried the

Code: Select all

# dir2tgz <folder name>

and that worked, but once I added the split part, after half an hour no "DONE" appeared, so I assume something was wrong. Any help on split in terminal plz?


Re: How to compress files in Easy?

Posted: Mon Jun 26, 2023 8:30 am
by BarryK

split didn't work because it is done the wrong way, using a pipe.
First use dir2tgz to create a tarball file, then afterward investigate ways in which it can be split up.


Re: How to compress files in Easy?

Posted: Mon Mar 04, 2024 12:05 pm
by megan183

you can use software like WinRAR or 7-Zip. simply right-click on the folder you want to compress, then select add to archive or add to folder name.zip. As for compressing files into parts of a specific size, both WinRAR and 7-Zip offer options to split archives into smaller parts. You can specify the size you want, such as 1GB, during the compression process.


Re: How to compress files in Easy?

Posted: Tue Mar 05, 2024 12:34 pm
by Federico

As explained here:

https://www.forum.puppylinux.com/viewtopic.php?t=10049

the best way is to simply use X-Archive, by simply installing the package p7zip, which you'll find on the repository using PKGget.
Barry has kindly taken care of compiling it and adding it to the repo.
On that thread there's also explained the exact procedure for adding files and folders to an archive using X-Archive.