?
Solved

Adding/Replacing file in existing zip archive on FreeBSD.

Posted on 2005-03-03
5
Medium Priority
?
937 Views
Last Modified: 2008-01-09
Hi,

I have a large (100MB) zip file on a remote host in the hosting company and I need to replace one of the files inside this archive.

I have on this host:

tar and gzip.

The question is how? I need an exact FreeBSD syntax.

Thanks.
0
Comment
Question by:muhalok
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
surya_prabhakar earned 2000 total points
ID: 13452212
what is the extension of the file .

unpacking
-----------------
If it is only a zip file ( zipped with gzip) you will have an extension like

name.gz

then you unzip it as gunzip filename.gz

If it is a name which is tarred as well as zipped with (gzip) you will have an extension like

name.tar.gz  or filename.tgz
then you unzip it as

gunzip name.tar.gz
then
tar -xvf name.tar
-------------------------------------------
to Zip it back

first tar it
tar -cvf name.tar filename
then
gzip name.tar

surya.
0
 
LVL 5

Author Comment

by:muhalok
ID: 13452903
Ye, that was obvious , thanks anyway.

I was looking for something like adding a file to zip archive (like in Windows - open archive and drag/drop files into it).
0
 
LVL 7

Expert Comment

by:surya_prabhakar
ID: 13454136
are you connecting to some telnet kind of thing ? But I guess you have untar put the file in and re-tar it .
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question