LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-21-2006, 05:44 PM   #1
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Rep: Reputation: 30
Zip file with no compression


I am attempting to modify some Thunderbird .jar files in Slackware 10.2 and KDE 3.4. I need to modify the .jar files then zip them but with no compression. I have done this in the past using FileRoller in Gnome, but I can't seem to find a setting in Ark to zip files with no compression. I also couldn't figure how to do this with the command line.
How do I modify these files and reinclude them in the .jar with no compression? Does anyone know how to do this with Ark or the command line? How about another KDE application that can do this?
 
Old 04-21-2006, 05:59 PM   #2
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
Does it have to be zip? Why not tar? If so it would be:
tar cvf tarfile.tar source

With zip i believe this should work:
zip -rn * source zipfile.zip

I cant test it right now but that is what I remember.
 
Old 04-21-2006, 06:03 PM   #3
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Original Poster
Rep: Reputation: 30
I'll give it a try. Yes, it does need to be zipped, I think. The Thunderbird .jar files are just zipped files with the .jar extension. If any compression is used, Thunderbird won't work. I assume, this to be the case if I use tar, but I never tried it.
 
Old 04-21-2006, 08:56 PM   #4
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Original Poster
Rep: Reputation: 30
I couldn't do it. I don't know if it was my syntax or what, but I was able to find a zip program that would work for me, karchiever. Thanks for the help.
 
Old 04-22-2006, 03:20 PM   #5
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
It worked here, though not exactly as a wanted it to be:
leo@zeus ~/bin $ zip -rn * . zipfile
zip warning: name not matched: zipfile
adding: lowercase.sh (deflated 33%)
adding: rename_files.sh (deflated 50%)
adding: helloworld (stored 0%)
adding: cria_thumbs.sh (stored 0%)
leo@zeus ~/bin $ ls -l
total 28
-rw-r--r-- 1 leo users 6624 Mar 21 17:30 cria_thumbs.sh
-rwxr--r-- 1 leo users 29 Mar 12 15:32 helloworld
-rw-r--r-- 1 leo users 7805 Apr 22 12:18 helloworld.zip
-rwxr--r-- 1 leo users 217 Mar 22 00:14 lowercase.sh
-rwxr--r-- 1 leo users 892 Mar 21 22:56 rename_files.sh
leo@zeus ~/bin $ unzip -l helloworld.zip
Archive: helloworld.zip
Length Date Time Name
-------- ---- ---- ----
217 03-22-06 00:14 lowercase.sh
892 03-21-06 22:56 rename_files.sh
29 03-12-06 15:32 helloworld
6624 03-21-06 17:30 cria_thumbs.sh
-------- -------
7762 4 files
 
Old 04-22-2006, 03:20 PM   #6
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
It worked here, though not exactly as a wanted it to be:
john@zeus ~/bin $ zip -rn * . zipfile
zip warning: name not matched: zipfile
adding: lowercase.sh (deflated 33%)
adding: rename_files.sh (deflated 50%)
adding: helloworld (stored 0%)
adding: cria_thumbs.sh (stored 0%)
john@zeus ~/bin $ ls -l
total 28
-rw-r--r-- 1 john users 6624 Mar 21 17:30 cria_thumbs.sh
-rwxr--r-- 1 john users 29 Mar 12 15:32 helloworld
-rw-r--r-- 1 john users 7805 Apr 22 12:18 helloworld.zip
-rwxr--r-- 1 john users 217 Mar 22 00:14 lowercase.sh
-rwxr--r-- 1 john users 892 Mar 21 22:56 rename_files.sh
john@zeus ~/bin $ unzip -l helloworld.zip
Archive: helloworld.zip
Length Date Time Name
-------- ---- ---- ----
217 03-22-06 00:14 lowercase.sh
892 03-21-06 22:56 rename_files.sh
29 03-12-06 15:32 helloworld
6624 03-21-06 17:30 cria_thumbs.sh
-------- -------
7762 4 files
 
Old 04-22-2006, 04:45 PM   #7
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally Posted by SweetLou
I'll give it a try. Yes, it does need to be zipped, I think. The Thunderbird .jar files are just zipped files with the .jar extension. If any compression is used, Thunderbird won't work. I assume, this to be the case if I use tar, but I never tried it.
You're just trying to re-package a theme file, right? I assume it's the same with Thunderbird as it is with Firefox. You should just be able to zip it up again using "zip." At least that's what I've been doing myself.
 
Old 04-22-2006, 06:31 PM   #8
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Aren't these archives real "jar" files? There is a "jar" tool (which works like tar) that comes with Sun JDK. There is also a free tool called "fastjar" that does the same thing.
 
Old 04-23-2006, 04:30 AM   #9
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Original Poster
Rep: Reputation: 30
Hmmm, I am not too familiar with the zip command, had to do some reading up on it. But, since I had karchiever, I kind of stopped worrying about it, but I will keep this in mind for the next time I need to do this.
Daihard, no it isn't a theme file, it is actually mail.jar. I want to remove the extra "To:" fields, I don't need four of them.
ataraxia, you are probably correct. I have not heard of the jar tool, but kind of makes sense now that you mention it. It probably does work like tar where it just puts all the files in one file with no compression. I will have to take a look at fastjar.
 
Old 08-01-2012, 08:47 AM   #10
gregie156
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
to make sure nothing gets compressed, use:

zip -rn *:: derp.zip ./derp
 
Old 08-01-2012, 11:43 AM   #11
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I use ark to update .xpi add-on files all the time. Just open the archive up, drag&drop the file you want out of it, edit it as you wish, and drag&drop it back into the archive. The file should be automatically updated.
 
Old 08-01-2012, 11:52 AM   #12
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
wake up, little suzie, wake up

6 years old; must be a new olympic record
 
Old 08-01-2012, 12:13 PM   #13
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Sheesh. Usually I notice that.

No record though. I caught one yesterday from 2004.
 
Old 08-01-2012, 01:13 PM   #14
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
OK silver medal.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic File Compression Options antwoneeter Linux - General 3 06-30-2005 12:18 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
ACE, RAR File Compression donkyboy666 Linux - Software 6 08-25-2004 07:40 PM
XMMS - Vorbis Ogg File Compression eastj1974 Linux - Software 1 03-12-2003 12:57 PM
multiple file compression mandrake_linux Linux - General 0 04-12-2001 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration