How To Install New Generation Optware

New Generation Optware is a modern package manager used for distribution of additional software packages on AsusWRT.
Works only on usb drives formatted as EXT2, EXT3 or EXT4 for Arm devices

1 - Download RMerlin firmware from here

2 - Go to firmware upgrade page and upload normally like a stock one

3 - Go to Advanced_System_Content, check  "Enable JFFS custom scripts and configs" & "Enable SSH", press Apply and Reboot


4 - After reboot, connect to router with putty terminal and type:

cd /tmp
wget -c -O
chmod +x ./
[email protected]:/tmp/home/root# ./
Info: This script was created by ryzhov_al and modified by TeHashX.
Info: Thanks @alllexx88 for New Generation Optware
Info: and @Rmerlin for his awesome firmwares
Info: This script will guide you through the Optware-NG installation.
Info: Script modifies only "optware-ng" folder on the chosen drive,
Info: no other data will be touched. Existing installation will be
Info: replaced with this one. Also some start scripts will be installed,
Info: the old ones will be saved on partition where Optware-NG is installed
Info: like /tmp/mnt/sda1/jffs_scripts_backup.tgzInfo: Looking for available partitions...

[1] --> /tmp/mnt/sda1
=> Please enter partition number or 0 to exit

5 - Choose a partition where Optware-NG should be installed, in this case is only [1] --> /tmp/mnt/sda1



Info: /tmp/mnt/sda1 selected.
Info: Creating /tmp/mnt/sda1/optware-ng folder...
Info: Creating /tmp/opt symlink...
Info: Creating /jffs scripts backup...
tar: removing leading '/' from member names
Info: Modifying start scripts...
Info: Starting Optware-NG deployment....

--2015-08-16 16:59:31--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 329 [text/x-sh]
Saving to: ''

buildroot-mipsel-bo 100%[=====================>] 329 --.-KB/s in 0s

2015-08-16 16:59:31 (3.00 MB/s) - '' saved [329/329]

--2015-08-16 16:59:33--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160979 (157K) [text/plain]
Saving to: 'ipkg-static_0.99.163-1_mipsel.ipk'

ipkg-static_0.99.16 100%[=====================>] 157.21K 933KB/s in 0.2s

2015-08-16 16:59:33 (933 KB/s) - 'ipkg-static_0.99.163-1_mipsel.ipk' saved [160979/160979]

Info: init.d start/stop services scripts created
Info: updating packages...
Updated list of available packages in /opt/lib/ipkg/lists/alllexx
Successfully terminated.
Installing findutils (4.2.32-1) to /opt/...
Installing uclibc-opt ( to /opt/...
Installing libnsl ( to /opt/...
Configuring findutils
update-alternatives: Linking //opt/bin/find to /opt/bin/findutils-find
update-alternatives: Linking //opt/bin/xargs to /opt/bin/findutils-xargs
Configuring libnsl
Configuring uclibc-opt
Successfully terminated.
Info: Optware-NG is installed successfully...
Info: Now install some packages, with ipkg install package_name,
Info: like nano text editor, type in terminal "ipkg install nano"
Info: Here is the list of installable packages
Info: Enjoy...
[email protected]:/tmp/mnt/sda1#

If you get some errors, reboot router and continue from step 4

6 - The script will create a directory named "optware-ng" or "optware-ng.arm" in the selected partition, type cd /opt

cd /opt
[email protected]:/tmp/mnt/sda1# cd /opt
[email protected]:/tmp/mnt/sda1/optware-ng#

7 - Now Optware New Generation is installed on your asuswrt router, it's time to install some packages, ex. nano text editor:

ipkg install nano
[email protected]:/tmp/mnt/sda1/optware-ng# ipkg install nano
Installing nano (2.3.6-2) to /opt/...
Installing ncurses (5.7-3) to /opt/...
Installing zlib (1.2.8-2) to /opt/...
Installing file (5.12-1) to /opt/...
Configuring file
Configuring nano
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring zlib
Successfully terminated.



SWAP FILE is created automatically by latest optware-ng script but if you want to enable it manually, follow the next steps:

cd /opt
dd if=/dev/zero of=swap bs=1024 count=524288
mkswap swap
chmod 0600 swap
swapon swap

To enable swap file when router booting, modify /jffs/scripts/post-mount script with

nano /jffs/scripts/post-mount

Paste this line at the end of the script

swapon /opt/swap

 Save with CTRL-O / Enter / and exit with CTRL-X
To unmount swap modify /jffs/scripts/services-stop script with
nano /jffs/scripts/services-stop

Paste this line at the end of the script

swapoff /opt/swap

Save with CTRL-O / Enter / and exit with CTRL-X
Make scripts executable
chmod +x /jffs/scripts/*

You can install packages from here: ARM, Mipsel

Thanks @alllexx for this modern Optware port and @ryzhov_al for initial scripts

User Review
4.82 (28 votes)