How to compress files in Easy?

Moderator: BarryK

Post Reply
szept
Posts: 141
Joined: Wed Jan 11, 2023 5:37 pm
Has thanked: 21 times
Been thanked: 2 times

How to compress files in Easy?

Post 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

Running live-USB EasyOS-64_5.6.3

...and taxes are theft! -.-
https://321my.wordpress.com/pw/

kris777
Posts: 39
Joined: Fri Dec 25, 2020 7:53 pm
Has thanked: 3 times
Been thanked: 8 times

Re: Compressing

Post 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

User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: Compressing

Post 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
don570
Posts: 624
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 98 times

rar compression

Post 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/

____________________________________________

szept
Posts: 141
Joined: Wed Jan 11, 2023 5:37 pm
Has thanked: 21 times
Been thanked: 2 times

Re: Compressing

Post 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?

Running live-USB EasyOS-64_5.6.3

...and taxes are theft! -.-
https://321my.wordpress.com/pw/

User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: How to compress files in Easy?

Post 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.

megan183
Posts: 4
Joined: Thu Jun 24, 2021 9:43 am
Been thanked: 3 times

Re: How to compress files in Easy?

Post 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.

User avatar
Federico
Posts: 142
Joined: Tue Jun 20, 2023 2:40 pm
Has thanked: 1 time
Been thanked: 19 times

Re: How to compress files in Easy?

Post 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.

Desktop PC
Case: Sharkoon S25-W MB: Asus Rog Strix B550-A PSU: XFX Pro 750W CPU: AMD Ryzen 5700X @ 4.6 GHz RAM: Corsair 32 GB DDR4 @ 3000 MHz Heatsink: Scythe Mugen 5 rev. B VGA: Asus Tuf RTX 3080 12 GB OC

Laptop PC: Asus Zenbook UX325E

Post Reply

Return to “EasyOS”