Difference between revisions of "Install an .ipk package without having the ipkg package management system (for end-users)"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(added original contributor)
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Template:Articles}}
 
<center><font color=red>''This article is based on the work of nix from www.linkstationwiki.org''</font></center>
 
<center><font color=red>''This article is based on the work of nix from www.linkstationwiki.org''</font></center>
  
Line 5: Line 6:
  
  
## Become root
+
* Become root
  su -
+
  su -<br>
## Unpack the ipk outer wrapper
+
* Download the package. E.g.
 
  mkdir /tmp/inst
 
  mkdir /tmp/inst
 
  cd /tmp/inst
 
  cd /tmp/inst
  tar xvfz ''package''.ipk
+
  wget http://''url-of-package/package''.ipk<br>
+
* Unpack the ipk outer wrapper
  ## Unpack the control file
+
  tar xvfz ''package''.ipk<br>
  tar xvfz control.tar.gz
+
* Unpack the control file
+
  tar xvfz control.tar.gz<br>
## Look for scripts such as preinst and postinst
+
* Look for scripts such as preinst and postinst
## Run the preinst script, if any
+
* Run the preinst script, if any
  ./preinst
+
  ./preinst<br>
## Unpack the main tarball under /
+
* Unpack the main tarball under /
 
  cd /
 
  cd /
  tar xvfz /tmp/inst/data.tar.gz
+
  tar xvfz /tmp/inst/data.tar.gz<br>
+
* Run the postinst script, if any
## Run the postinst script, if any
+
 
  cd /tmp/inst
 
  cd /tmp/inst
  ./postinst
+
  ./postinst<br>
+
* Cleanup
## Cleanup
+
 
  cd /tmp
 
  cd /tmp
 
  rm -rf inst
 
  rm -rf inst
  
 
+
The above commands just peels of the different archive wrappers, as explained in the other '''ipkg''' articles, and unpacks the files into the file tree. What it doesn't do is to record what has been installed. So uninstalling the data can be quite cumbersome.  
The above commands just peels of the different archive wrappers, as explained in the other '''ipkg''' articles.
+
  
 
[[Category:General]]
 
[[Category:General]]
 
[[Category:Ipkg]]
 
[[Category:Ipkg]]

Latest revision as of 22:22, 30 July 2006

This article is based on the work of nix from www.linkstationwiki.org


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 -
  • Download the package. E.g.
mkdir /tmp/inst
cd /tmp/inst
wget http://url-of-package/package.ipk
  • Unpack the ipk outer wrapper
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
./preinst
  • Unpack the main tarball under /
cd /
tar xvfz /tmp/inst/data.tar.gz
  • Run the postinst script, if any
cd /tmp/inst
./postinst
  • Cleanup
cd /tmp
rm -rf inst

The above commands just peels of the different archive wrappers, as explained in the other ipkg articles, and unpacks the files into the file tree. What it doesn't do is to record what has been installed. So uninstalling the data can be quite cumbersome.