yextract-0.8 yad compressed file extractor

Moderator: Forum moderators

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

yextract-0.8 yad compressed file extractor

Post by plinej »

I know there are plenty of extraction utilities out there but I wanted to create one with yad that is flexible and allows you to add scripts for currently unsupported file types as well as the ability to easily edit my current scripts. Open from the menu and click the edit button to add or edit my current scripts for specified file types or drop a file in to convert. Mime types are in the desktop file so you should also be able to select yextract from your file manager when a supported file is selected. If 7z or 7zz is installed the program will attempt to extract a non supported file type as well. If you don't have the required program installed to extract your file type you will get a pop up to let you know what you need to install.

If your file type is zip, rar, or 7z and the file is encrypted, you will get a pop up box to enter the password.

0.2 added scripts for more file types and improved some others, added more mime types to the desktop file, added the ability to use my generic 7zip script on a file if you are on the sequential second attempt of extracting the same file and you have 7z or 7zz executables installed.

0.3 Improved the extraction scripts & got rid of the gtk buttons for @bigpup

0.4 Improved, fixed and sped up some scripts. Created better and more verbose output.

0.5 added bz3 support, improved the other scripts as well.

0.6 fixed the rar script to overwrite if needed, fixed the generic 7zip script if a 7z archive has hidden files, added a 001 script that will reassemble a split 7z file and decompress it.

0.7 code clean up

0.8 fixed the deb script and a typo

yextract-0.8.pet
(14.93 KiB) Downloaded 43 times

Supported file types:
001 - combines split 7z files when the .001 file is opened and then decompresses if 7z or 7zz is installed
7z - requires either 7z or 7zz
ace - requires unace
arj - requires either 7z or 7zz
bin - requires bchunk and a cue file, may also require 7z or 7zz if resulting file is an iso
bz2 - requires bunzip2
bz3 - requires bunzip3
cab - requires either 7z or 7zz
cbr - requires unrar
cbz - requires unzip
chm - requires either 7z or 7zz
cpio - requires cpio
deb - requires either dpkg-deb or ar
depot - requires tar
dmg - requires either 7z or 7zz
gz - requires gunzip
img - requires either 7z or 7zz
iso - requires either 7z or 7zz
lzma - requires either 7z or 7zz
msi - requires either 7z or 7zz
pet - requires tar
pup - requires unzip and tar
rar - requires unrar
rpm - requires cpio and either of the following: rpm2cpio 7z 7zz and possibly unzstd or alien
sfs - requires one of the following: unsquashfs4 unsquashfs 7z 7zz
tar - requires tar
tar.7z - requires either 7z or 7zz as well as tar
tar.bz2 - requires tar
tar.bz3 - requires tar and bunzip3
tar.gz - requires tar
tar.lzma - requires tar and lzma
tar.xz - requires tar
tar.z - requires tar and zstd
tar.zst - requires tar and zstd
tbz - requires tar
tbz2 - requires tar
tgz - requires tar
tlz - requires tar and lzma
txz - requires tar
wim - requires either 7z or 7zz
xbps - requires tar and zstd
xz - requires unxz
z - requires uncompress
zfs - requires tar and zstd
zip - requires unzip
zstd - requires unzstd

Last edited by plinej on Thu Jul 04, 2024 12:10 pm, edited 14 times in total.
You can download my packages at https://archive.org/download/plinej-packages
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: yextract-0.1 yad compressed file extractor

Post by Jasper »

@plinej

This works brilliantly :thumbup:

I had some difficulties with extracting *.tar.lzma files using PExtract and UExtract.

On my part I had to drag and drop the first and second files uncompressed files, but finally got the complete extracted files.

Image

In this example, previously I used PExtract & UExtract to extract Softmaker-freeoffice-2021-1064-amd64.tgz

Both applications did provide the two files

Installfreeoffice
freeoffice2021.tar.lzma

Next I would use both applications to attempt to extract freeoffice2021.tar.lzma

Both failed.

With your application, I extracted the initial file Softmaker-freeoffice-2021-1064-amd64.tgz and ended up with the two files

Installfreeoffice
freeoffice2021.tar.lzma

Then took the next step and selected and drag & dropped freeoffice2021.tar.lzma, which gave me the freeoffice-2021.tar directory with all the extracted contents.

Hope that makes sense to you & thank you.

The original/working file is:

https://www.freeoffice.com/download.php ... -amd64.tgz

Last edited by Jasper on Thu Dec 14, 2023 5:12 pm, edited 3 times in total.
plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.1 yad compressed file extractor

Post by plinej »

@Jasper Can you provide a link for the file in question so I can add support for it?

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.1 yad compressed file extractor

Post by plinej »

@Jasper

Code: Select all

tar --lzma -xvf PATH/TO/YOUR/FILE

That code should extract your file. I will add a script for tar.lzma files in the next release.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: yextract-0.1 yad compressed file extractor

Post by Jasper »

Using UExtract

Image

Using PEXtract

Image

I did try using the command that you suggested previously with no luck ...........

Image

Your application worked :thumbup:

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: yextract-0.1 yad compressed file extractor

Post by Jasper »

FYI there are pre-compiled static binaries used for compression/decompression which can be used from PeaZip Portable

Thanks for the additional file, added to the others :thumbup2:

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.1 yad compressed file extractor

Post by plinej »

Since the 7z or 7zz programs from the 7zip package seem to be able to extract many formats, I've added the ability to try and use 7zip to extract your file if you've attempted the same file in your previous run of the program. Of course you'll need 7zip installed to get prompted for that option. This will be in the 0.2 version. I've updated the desktop file with more mime types and am working on some more scripts for various file types. I've also improved some of the existing scripts.

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.2 yad compressed file extractor

Post by plinej »

0.2 is up. I'm done with this for now. If anyone has scripts they would like me to add for future versions, let me know.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: yextract-0.2 yad compressed file extractor

Post by Jasper »

Many thanks for the update :thumbup:

I was wondering if it would be possible to incorporate the use of GNU Parallel within the scripts?

Not sure if it would be applicable or practical.

My wish was to use multiple cpu cores where possible to carry out these tasks.

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.2 yad compressed file extractor

Post by plinej »

@Jasper I will look in to that.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: yextract-0.2 yad compressed file extractor

Post by Jasper »

@plinej

Do not know if this was planned/intentionally......... it has automatically become my default handler for files downloaded by my browser (Palemoon).

Image

If I then proceed to extract the file, it does not do this in my designated "Downloads" directory.

It places the download and extracted contents in this location.

Image

EDIT

This is the default setting for downloads.

As suggested I will extract the files outside of the browser :thumbup:

Image

Last edited by Jasper on Fri Dec 15, 2023 3:13 pm, edited 1 time in total.
plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.2 yad compressed file extractor

Post by plinej »

@Jasper I'm not sure about that at all. It doesn't do that for me in Chrome or Firefox but I don't have Palemoon installed. Could it be a setting in your browser? If you figure it out let me know if there's something I need to change. I would probably just download the file and not have the browser automatically open it.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: yextract-0.2 yad compressed file extractor

Post by bigpup »

yextract-0.2

In the buttons that show for edit, OK, or cancel.

They have gtk- in them.

gtk-edit

gtk-cancel.

gtk-ok

In the file yextract, every place it had entries for these items.

I removed the gtk-

The buttons now show as edit, OK, and cancel.
.
Original

Screenshot(2).jpg
Screenshot(2).jpg (20.4 KiB) Viewed 2157 times

.
After my edit

Screenshot(1).jpg
Screenshot(1).jpg (19.5 KiB) Viewed 2159 times

.
.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.2 yad compressed file extractor

Post by plinej »

@bigpup That may be due to a specific version of yad but I can change that for the next version.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: yextract-0.2 yad compressed file extractor

Post by bigpup »

I added images to my post to show before and after my edit.

Note:
I installed it in special version of EasyOS for the Raspberry Pi computers, which is an arm version of EasyOS.
Seems to be working very well in it.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.3 yad compressed file extractor

Post by plinej »

0.3 is up

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: yextract-0.3 yad compressed file extractor

Post by bigpup »

If you are making changes.

when the extraction process is being displayed, showing the different files being extracted.

I suggest you have something to show the extraction is complete.

This window just seems to stop doing anything as the only way to know it is done extracting.

Not a problem with a small sized compressed item.

But when I did a very large sized compressed deb package.

It seemed to stop showing the process a few times and then continuing.
Probably the item it was decompressing, was a big one, and took some time, before it could go to the next item.

Maybe have it say finished, as the last item, at the bottom of the decompressing process window displayed list of stuff it decompressed. :idea:

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: yextract-0.3 yad compressed file extractor

Post by bigpup »

I do not think you got them all.
.

Screenshot(3).jpg
Screenshot(3).jpg (79.97 KiB) Viewed 2134 times

.
This image shows the results of the large sized deb package, I was saying would stop and go, in displaying the decompressing operation.
Several times it seemed to be complete, but then started displaying more decompressing results.
Sure would help, if when finished, it told you that. :idea:

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.3 yad compressed file extractor

Post by plinej »

@bigpup, Some of the scripts have an extraction complete at the end but I like the idea of something on the screen showing the process is still going especially for bigger files. I'll try to implement something. I'll get that button fixed too.

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.3 yad compressed file extractor

Post by plinej »

@bigpup, check the original post for an updated yextract script to test...

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: yextract-0.3 yad compressed file extractor

Post by bigpup »

Thanks for the improvements.

It seems to be working OK with the improvements.

Nice addition to it, telling you it is working, when it stops display progress, for a very large file decompressing.

Very good program!

I am really liking it! :thumbup:
.

Screenshot(4).jpg
Screenshot(4).jpg (77.97 KiB) Viewed 2110 times

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.3 yad compressed file extractor

Post by plinej »

@bigpup, great. I've thought of some other improvements and have sped up some processes. I'll probably do another update sometime today.

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.4 yad compressed file extractor

Post by plinej »

0.4 is up

You can download my packages at https://archive.org/download/plinej-packages
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: yextract-0.4 yad compressed file extractor

Post by Jasper »

.

Last edited by Jasper on Fri Nov 29, 2024 1:57 am, edited 1 time in total.
plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.5 yad compressed file extractor

Post by plinej »

0.5 is up. Added bz3 support and made some improvements on some other scripts too.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: yextract-0.5 yad compressed file extractor

Post by bigpup »

Just reporting this to let you know it is working.

I had version 0.4 installed and downloaded and installed version 0.5

when i started it, got this message.

I assume this is what should happen and it does seem to update, when I select update.
.

Screenshot(6).jpg
Screenshot(6).jpg (11.63 KiB) Viewed 1867 times

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: yextract-0.5 yad compressed file extractor

Post by bigpup »

Using v0.5
If this is one of the improvements, I like it! :thumbup:

Can I expect to see an error message if something does not go correctly?
.

Screenshot(7).jpg
Screenshot(7).jpg (33.88 KiB) Viewed 1865 times

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.5 yad compressed file extractor

Post by plinej »

@bigpup, error messages should display depending on the back end program being used. The popup when running a new version is just to let you know the new scripts will overwrite the old. If you've edited any of the scripts they will be overwritten so you would want to back them up. I assume most people won't be editing anything though so clicking update is the thing to do.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: yextract-0.5 yad compressed file extractor

Post by Jasper »

@bigpup

I wanted necessarily say this is an "error" message.

It did report back to me that I had extracted the same file previously (was testing at the time!). Which was useful to know and stopped me from extracting the file again.

Just grabbed the latest update.... thanks again :thumbup:

plinej
Posts: 243
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 7 times
Been thanked: 100 times

Re: yextract-0.6 yad compressed file extractor

Post by plinej »

0.6 is up

You can download my packages at https://archive.org/download/plinej-packages
Post Reply

Return to “Utilities”