Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

Upgrade from Entware

Alexander Ryzhov edited this page Dec 14, 2015 · 5 revisions

Upgrade script

You can upgrade existing Entware packages by running upgrade script.

wget -qO - http://pkg.entware.net/binaries/mipsel/installer/upgrade.sh | sh

Details

Script will do following steps:

  • Shut down running Entware services,
  • Save a list of installed packages and remove them,
  • Deploy new package manager and basic files,
  • Install packages which was previously installed.

Important notes

Please keep in mind:

  • New Entware-ng MIPS feed is incompatible with old (7+ years) MIPSr1 devices.
  • Upgrade will abort if you are logged on via ssh/telnetd daemon from Entware. This services will be stopped during upgrade.
  • Some of packages may need to be re-configured after upgrade, you may (optionally) backup valuable info from /opt folder before upgrade.

Upgrade example

Here is console log while running upgrade.

admin@RT-N66U-63D0:/tmp/mnt/OPT# wget -qO - http://pkg.entware.net/binaries/mipsel/installer/upgrade.sh | sh
This script will upgrade existing Entware packages to Entware-ng.
Please keep in mind:

* Entware-ng is not compatible with old (7+ years) MIPSr1 devices.
    Please, refer to this list if you are not sure about this router
    http://tomatousb.org/doc:build-types#toc3

* Upgrade will be aborted if you are logged on to this console via ssh/telnet
    daemon from Entware, this services will be stopped during upgrade.

* Some of packages may need to be re-configured after upgrade. You may
    (optionally) backup valuable info from `/opt` folder before upgrade.

Upgrade will be continued in 30 seconds. Press 'Ctrl+c' to abort
...............................starting upgrade!
[1/4] Trying to stop running services...
 Checking lighttpd...              alive.
 Shutting down lighttpd...              done.
The following packages will be reinstalled after upgrade:
findutils glib2 ldconfig libattr libblkid libc libffi libgcc libiconv-full libintl-full libmount libopenssl 
libpcre libpthread librpc librt libslang2 libssh2 libstdcpp libuuid lighttpd mc terminfo uclibc-opt zlib
[2/4] Uninstalling existing packages...
Removing package findutils from root...
Removing package glib2 from root...
Removing package ldconfig from root...
...
Removing package lighttpd from root...
Not deleting modified conffile /opt/etc/lighttpd/lighttpd.conf.
Removing package mc from root...
...
Removing package zlib from root...
[3/4] Deploying Entware-ng opkg package manager...
Downloading /opt/bin/opkg... success!
Downloading /opt/etc/opkg.conf... success!
Downloading /opt/etc/profile... success!
Downloading /opt/etc/init.d/rc.func... success!
Downloading /opt/etc/init.d/rc.unslung... success!
[4/4] Installing new versions of packages...
Downloading http://pkg.entware.net/binaries/mipsel/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/entware-ng.
No packages removed.
Installing ldconfig (1.0.8-1) to root...
Downloading http://pkg.entware.net/binaries/mipsel/ldconfig_1.0.8-1_mipselsf.ipk.
Installing findutils (4.5.14-1) to root...
Downloading http://pkg.entware.net/binaries/mipsel/findutils_4.5.14-1_mipselsf.ipk.
Installing libc (1.0.8-1) to root...
Downloading http://pkg.entware.net/binaries/mipsel/libc_1.0.8-1_mipselsf.ipk.
...
Installing lighttpd (1.4.37-1) to root...
Downloading http://pkg.entware.net/binaries/mipsel/lighttpd_1.4.37-1_mipselsf.ipk.
Installing mc (4.8.14-1.3) to root...
Downloading http://pkg.entware.net/binaries/mipsel/mc_4.8.14-1.3_mipselsf.ipk.
Package terminfo (6.0-1) installed in root is up to date.
Unknown package 'uclibc-opt'.
Package zlib (1.2.8-1) installed in root is up to date.
Configuring libgcc.
Configuring libc.
Configuring libssp.
Configuring terminfo.
...
Configuring lighttpd.
Configuring libstdcpp.
Configuring findutils.
Collected errors:
 * opkg_install_cmd: Cannot install package librpc.
 * resolve_conffiles: Existing conffile /opt/etc/lighttpd/lighttpd.conf is different from the conffile in the 
new package. The new conffile will be placed at /opt/etc/lighttpd/lighttpd.conf-opkg.
 * opkg_install_cmd: Cannot install package uclibc-opt.
Done. Found a bug? Please report us at
https://github.com/Entware-ng/Entware-ng/issues
admin@RT-N66U-63D0:/tmp/mnt/OPT#