Linux: opkg download package and then install

1. I suggest the first way because its better for packages with dependencies.

To download package:

# opkg –cache /path/to/save/folder –download-only install <package>

To install off-line package:

# opkg –cache /path/to/save/folder install <package>

or

Edit in /etc/opkg/opkg.conf (helpful if you will be doing lots of installs)

option cache /path/to/save/folder

# opkg install <package>

Example:

# opkg –cache /home/mfang/opkg_packages –download-only install pulseaudio-server

# opkg –cache /home/mfang/opkg_packages install pulseaudio-server

2. This way works too (good for single package update)

To download package:

# opkg –download-only install <package>

To install:

~/opkg_files# opkg install ./<package>-*.ipk

If you do this and the package has dependencies, then it’ll just download the dependent packages.

Example:

# cd opkg_files

~/opkg_files# opkg –download-only install file

~/opkg_files# opkg install ./file-*.ipk

Advertisements
This entry was posted in Linux and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s