Install an .ipk package without having the ipkg package management system (for end-users)

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 13:55, 15 June 2006 by Bauldrick (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In case you somehow obtained an .ipk package which you want to install, but if you don't have the ipkg package management system installed (or it is not working), the following are the steps to manually install an .ipk package:

## Become root
su -
## Unpack the ipk outer wrapper
mkdir /tmp/inst
cd /tmp/inst
tar xvfz package.ipk

## Unpack the control file
tar xvfz control.tar.gz

## Look for scripts such as preinst and postinst
## Run the preinst script, if any
## Unpack the main tarball under /
cd /
tar xvfz /tmp/inst/data.tar.gz

## Run the postinst script, if any
cd /tmp/inst

## Cleanup
cd /tmp
rm -rf inst

The above commands just peels of the different archive wrappers, as explained in the other ipkg articles.