How to make a tarball?

View: New views
11 Messages — Rating Filter:   Alert me  

How to make a tarball?

by James Tyrer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a folder that I would like to convert to a TAR.GZ file.

How do I do this with KDE-4.3.2?  I am using Konqueror as my file
manager, but I could use Dolphin if that is necessary.

--
James Tyrer

Linux (mostly) From Scratch
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: How to make a tarball?

by g-30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

James Tyrer wrote:
> I have a folder that I would like to convert to a TAR.GZ file.

i am not under a kde4 at this time, but in kde3, a right click on directory
will present 'compress' with sub selections.

hth.

--

peace out.

tc,hago.

g
.

****
in a free world without fences, who needs gates.
**
help microsoft stamp out piracy - give linux to a friend today.
**
to mess up a linux box, you need to work at it.
to mess up an ms windows box, you just need to *look* at it.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****



___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

signature.asc (557 bytes) Download Attachment

Re: How to make a tarball?

by H.J. Everts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you can type tar -czvf file.tar.gz <folder> in the console

g wrote:

> James Tyrer wrote:
>  
>> I have a folder that I would like to convert to a TAR.GZ file.
>>    
>
> i am not under a kde4 at this time, but in kde3, a right click on directory
> will present 'compress' with sub selections.
>
> hth.
>
>  
> ------------------------------------------------------------------------
>
> ___________________________________________________
> This message is from the kde mailing list.
> Account management:  https://mail.kde.org/mailman/listinfo/kde.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: How to make a tarball?

by Bugzilla from mail@patrick-nagel.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi James,

On 2009-10-12 20:05 UTC James Tyrer wrote:
> I have a folder that I would like to convert to a TAR.GZ file.
>
> How do I do this with KDE-4.3.2?  I am using Konqueror as my file
> manager, but I could use Dolphin if that is necessary.

When I right-click on a directory or (a selection of multiple) file(s),
I have a 'Compress' sub-menu in which I can choose 'As ZIP/TAR Archive',
which creates a tar.gz archive. I think you have to have Ark installed
for this to work.

Patrick.

--
Key ID: 0x86E346D4            http://patrick-nagel.net/key.asc
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

signature.asc (205 bytes) Download Attachment

Re: How to make a tarball?

by James Tyrer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Patrick Nagel wrote:

> Hi James,
>
> On 2009-10-12 20:05 UTC James Tyrer wrote:
>> I have a folder that I would like to convert to a TAR.GZ file.
>>
>> How do I do this with KDE-4.3.2?  I am using Konqueror as my file
>> manager, but I could use Dolphin if that is necessary.
>
> When I right-click on a directory or (a selection of multiple)
> file(s), I have a 'Compress' sub-menu in which I can choose 'As
> ZIP/TAR Archive',

Note the missing 'G'; should be "GZIP/TAR" or "GZ/TAR" or "TAR.GZ".
And, "Here" is redundant and an option for TAR.BZ is missing as well as
that new ZIP format (which I did install).

> which creates a tar.gz archive. I think you have to
> have Ark installed for this to work.
>
Have you tried this?  Did it work.

When I click that on the directory "Page-323", I get this file which is
nor correct and can not be un-tarred:

http://home.earthlink.net/~tyrerj/kde/KDE-4/Page-323.tar.gz

yet another small thing that doesn't work?

--
James Tyrer

Linux (mostly) From Scratch
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: How to make a tarball?

by g-30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

James Tyrer wrote:

> When I click that on the directory "Page-323", I get this file which is
> nor correct and can not be un-tarred:
>
> http://home.earthlink.net/~tyrerj/kde/KDE-4/Page-323.tar.gz
>
> yet another small thing that doesn't work?

that file is on a web site.

if you want to unzip, you need to download it first.


--

peace out.

tc,hago.

g
.

****
in a free world without fences, who needs gates.
**
help microsoft stamp out piracy - give linux to a friend today.
**
to mess up a linux box, you need to work at it.
to mess up an ms windows box, you just need to *look* at it.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****



___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

signature.asc (557 bytes) Download Attachment

Re: How to make a tarball?

by Bugzilla from mail@patrick-nagel.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi James,

On 2009-10-13 20:33 UTC James Tyrer wrote:
> Patrick Nagel wrote:
> > When I right-click on a directory or (a selection of multiple)
> > file(s), I have a 'Compress' sub-menu in which I can choose 'As
> > ZIP/TAR Archive',
>
> Note the missing 'G'; should be "GZIP/TAR" or "GZ/TAR" or "TAR.GZ".

I agree. I would vote for 'TAR.GZ' or 'tar.gz'...

> And, "Here" is redundant and an option for TAR.BZ is missing as well
>  as that new ZIP format (which I did install).

Yes, "Here" just does create a tar.gz for me. A useless menu entry.
'TAR.BZ2' or 'tar.bz2' would be a good enhancement, I agree.
What do you mean by "that new ZIP format"? I have 'ZIP' in the list, and
it creates a ZIP (as in PK Zip) archive.

> > which creates a tar.gz archive. I think you have to
> > have Ark installed for this to work.
>
> Have you tried this?  Did it work.

Yes, it works perfectly here (Gentoo packages, KDE 4.3.2).

> When I click that on the directory "Page-323", I get this file which
>  is nor correct and can not be un-tarred:
>
> http://home.earthlink.net/~tyrerj/kde/KDE-4/Page-323.tar.gz
>
> yet another small thing that doesn't work?

I just downloaded your file and could un-'tar -xzf' it without a problem
(there was a message from tar though, that I don't get often). See my
shell session:

-----
pn ~/temp/test $ ls -l
total 120
-rw-r--r-- 1 pn pn 115178 2009-10-14 12:45 Page-323.tar.gz
pn ~/temp/test $ tar -xzf Page-323.tar.gz
tar: Removing leading `../../' from member names
pn ~/temp/test $ ls -lR
.:
total 124
drwxr-xr-x 3 pn pn   4096 2009-10-14 12:53 Desktop
-rw-r--r-- 1 pn pn 115178 2009-10-14 12:45 Page-323.tar.gz

./Desktop:
total 4
drwxr-xr-x 3 pn pn 4096 2009-10-14 12:53 Work

./Desktop/Work:
total 4
drwxr-xr-x 2 pn pn 4096 2009-10-13 07:23 Page-323

./Desktop/Work/Page-323:
total 128
-rw-r--r-- 1 pn pn 83405 2009-10-13 06:55 323a-1-med.png
-rw-r--r-- 1 pn pn 27097 2009-10-13 06:57 323a-1-thumb.png
-rw-r--r-- 1 pn pn  6494 2009-10-13 07:22 index.html
-rw-r--r-- 1 pn pn   431 2009-10-13 06:29 logo_002.gif
------

Patrick.

--
Key ID: 0x86E346D4            http://patrick-nagel.net/key.asc
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

signature.asc (205 bytes) Download Attachment

Re: How to make a tarball?

by James Tyrer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Patrick Nagel wrote:

> Hi James,
>
> On 2009-10-13 20:33 UTC James Tyrer wrote:
>> Patrick Nagel wrote:
>>> When I right-click on a directory or (a selection of multiple)
>>> file(s), I have a 'Compress' sub-menu in which I can choose 'As
>>> ZIP/TAR Archive',
>> Note the missing 'G'; should be "GZIP/TAR" or "GZ/TAR" or "TAR.GZ".
>
> I agree. I would vote for 'TAR.GZ' or 'tar.gz'...
>
>> And, "Here" is redundant and an option for TAR.BZ is missing as well
>>  as that new ZIP format (which I did install).
>
> Yes, "Here" just does create a tar.gz for me. A useless menu entry.
> 'TAR.BZ2' or 'tar.bz2' would be a good enhancement, I agree.
> What do you mean by "that new ZIP format"? I have 'ZIP' in the list, and
> it creates a ZIP (as in PK Zip) archive.
>
>>> which creates a tar.gz archive. I think you have to
>>> have Ark installed for this to work.
>> Have you tried this?  Did it work.
>
> Yes, it works perfectly here (Gentoo packages, KDE 4.3.2).
>
Note that I didn't know that there was a problem till I checked the
resulting TAR.GZ file with Ark.  Your output below shows that
directories were added back to "/".  So, you would need to open the
result in Ark to see if it worked correctly.

>> When I click that on the directory "Page-323", I get this file which
>>  is nor correct and can not be un-tarred:
>>
>> http://home.earthlink.net/~tyrerj/kde/KDE-4/Page-323.tar.gz
>>
>> yet another small thing that doesn't work?
>
> I just downloaded your file and could un-'tar -xzf' it without a problem
> (there was a message from tar though, that I don't get often). See my
> shell session:
>
> -----
> pn ~/temp/test $ ls -l
> total 120
> -rw-r--r-- 1 pn pn 115178 2009-10-14 12:45 Page-323.tar.gz
> pn ~/temp/test $ tar -xzf Page-323.tar.gz
> tar: Removing leading `../../' from member names
> pn ~/temp/test $ ls -lR
> .:
> total 124
> drwxr-xr-x 3 pn pn   4096 2009-10-14 12:53 Desktop
> -rw-r--r-- 1 pn pn 115178 2009-10-14 12:45 Page-323.tar.gz
>
> ./Desktop:
> total 4
> drwxr-xr-x 3 pn pn 4096 2009-10-14 12:53 Work
>
> ./Desktop/Work:
> total 4
> drwxr-xr-x 2 pn pn 4096 2009-10-13 07:23 Page-323
>
> ./Desktop/Work/Page-323:
> total 128
> -rw-r--r-- 1 pn pn 83405 2009-10-13 06:55 323a-1-med.png
> -rw-r--r-- 1 pn pn 27097 2009-10-13 06:57 323a-1-thumb.png
> -rw-r--r-- 1 pn pn  6494 2009-10-13 07:22 index.html
> -rw-r--r-- 1 pn pn   431 2009-10-13 06:29 logo_002.gif
> ------
>
--
James Tyrer

Linux (mostly) From Scratch
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: How to make a tarball?

by James Tyrer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Patrick Nagel wrote:
<SNIP>
>> And, "Here" is redundant and an option for TAR.BZ is missing as well
>>  as that new ZIP format (which I did install).
>
> Yes, "Here" just does create a tar.gz for me. A useless menu entry.
> 'TAR.BZ2' or 'tar.bz2' would be a good enhancement, I agree.
> What do you mean by "that new ZIP format"? I have 'ZIP' in the list, and
> it creates a ZIP (as in PK Zip) archive.
>
XZ.

--
James Tyrer

Linux (mostly) From Scratch
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[FOLLOW UP] Re: How to make a tarball?

by James Tyrer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Regarding the: "Compress -> Here":

Although this is a bug and should be deleted, it is in the list of
"Services" in the Konqueror KCM so you can simply turn it off. :-)

You can fix the other issues by editing the file:

$KDEDIR/share/kde4/services/ServiceMenus/ark_addtoservicemenu.desktop

Please note that the command for "Here" is:

        Exec=ark --changetofirstpath --add --autofilename tar.gz %F

and that the command for the misnamed: "As ZIP/TAR Archive" is:

        Exec=ark --changetofirstpath --add --autofilename tar.gz %F

What am I missing here -- they look identical to me.  I am not allowed
to make any derogatory statements, so I can only ask you to draw your
own conclusions.

If you want to add the other commands which are missing, you can add
them to this file.

--
James Tyrer

Linux (mostly) From Scratch
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [FOLLOW UP] Re: How to make a tarball?

by Bugzilla from mail@patrick-nagel.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi James,

On 2009-10-25 00:58 UTC James Tyrer wrote:

> Regarding the: "Compress -> Here":
>
> Although this is a bug and should be deleted, it is in the list of
> "Services" in the Konqueror KCM so you can simply turn it off. :-)
>
> You can fix the other issues by editing the file:
>
> $KDEDIR/share/kde4/services/ServiceMenus/ark_addtoservicemenu.desktop
>
> Please note that the command for "Here" is:
>
> Exec=ark --changetofirstpath --add --autofilename tar.gz %F
>
> and that the command for the misnamed: "As ZIP/TAR Archive" is:
>
> Exec=ark --changetofirstpath --add --autofilename tar.gz %F
>
> What am I missing here -- they look identical to me.  I am not
>  allowed to make any derogatory statements, so I can only ask you to
>  draw your own conclusions.
A proposal: submit a diff of your "perfect"
$KDEDIR/share/kde4/services/ServiceMenus/ark_addtoservicemenu.desktop
and the one that comes with KDE, and submit it as a patch to the KDE
bugtracker :) Better than any derogatory or non-derogatory statement :D

Patrick.

--
Key ID: 0x86E346D4            http://patrick-nagel.net/key.asc
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

signature.asc (205 bytes) Download Attachment