HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extracting/replacing files from a compressed Ignit...
Operating System - HP-UX
1833788
Members
2800
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 10:02 AM
03-13-2001 10:02 AM
Ignite uses pax to create a compressed archive(i.e. system.gz or system.Z) file. How do you extract or replace a file/directory within that image.
1. How would I extract the /tmp directory from system.gz or system.Z and restore it to the current working directory using pax?
2. How would I replace the /etc/passwd file in the image with a current /etc/passwd file?
1. How would I extract the /tmp directory from system.gz or system.Z and restore it to the current working directory using pax?
2. How would I replace the /etc/passwd file in the image with a current /etc/passwd file?
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 10:41 AM
03-13-2001 10:41 AM
Solution
1) To extract /tmp from system.gz overwriting the current /tmp:
cd /tmp
/usr/contrib/bin/gzcat system.gz | pax -rvf - tmp
(BTW gzcat will handle .Z files too)
2) You can append to the archive so that the new version of a file overwrites the older one in the same archive, but that I know of you can't easily "delete" a file from the archive without extracting the entire archive, removing the file/dir and re-archiving.
To append to system.gz:
cd /bigdir #3x the size of compressed file
cp system.gz /bigdir
/usr/contrib/bin/gunzip system.gz
cp to /bigdir files/dirs to be appended
pax -af system files/dirs
NB. don't put a leading / or ./ on the files/dirs specified on the command line, they should be relative to the directory that you are in.
gzcat -9 system
cd /tmp
/usr/contrib/bin/gzcat system.gz | pax -rvf - tmp
(BTW gzcat will handle .Z files too)
2) You can append to the archive so that the new version of a file overwrites the older one in the same archive, but that I know of you can't easily "delete" a file from the archive without extracting the entire archive, removing the file/dir and re-archiving.
To append to system.gz:
cd /bigdir #3x the size of compressed file
cp system.gz /bigdir
/usr/contrib/bin/gunzip system.gz
cp to /bigdir files/dirs to be appended
pax -af system files/dirs
NB. don't put a leading / or ./ on the files/dirs specified on the command line, they should be relative to the directory that you are in.
gzcat -9 system
etouq ot hguone revelc ton m'i
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP