Adding another destination

793 views
Skip to first unread message

cyrus

unread,
Nov 14, 2009, 7:04:14 PM11/14/09
to opkg-devel
Hi:

I am using OpenWRT (which uses opkg as the package manager).

Here is my opkg.conf file:

src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
dest
root /
dest ram /tmp
dest usb /mnt/sdb1
lists_dir ext /var/opkg-lists
option overlay_root /jffs

What I did was add the usb destination (which is just a mounted USB
drive used as extended storage). When installing packages I simply
install to that destination as follows:

opkg -dest usb install package-name.

That succesfully installs the package with root being /mnt/sdb1.
However, my problem is if I ever want to remove that package, I can't
seem to figure out how to do that. If I try opkg -dest usb remove
package-name it says not installed, if I leave out the -dest option it
says removing from root set but doesn't actually remove any of the
files and opkg list_installed still shows that package installed.

Also, when installing under dest usb it creates a new /mnt/sdb1/usr/
lib/opkg/conf directory with all the package-name.list files, etc. The
strange thing is, if I just erase everything under /mnt/sdb1 and do a
opkg list_installed, it still shows the packages that were installed
under /mnt/sdb1 as installed. Not sure where it is caching what
packages are installed and which ones aren't.

Any help would be appreciated.

Thanks

Graham Gower

unread,
Nov 14, 2009, 11:28:52 PM11/14/09
to opkg-...@googlegroups.com
Looks like it has always been broken. The problem was that no status
file was written out to the specified dest, the status info was always
being written to the default /usr/lib/opkg/status file. (So that's
what the unused variable I recently removed was intended to be used
for...)

I've committed a fix as r301. You will need to reinstall packages to
the alternative dest using this updated opkg in order to correctly
populate the status file.

-Graham

cyrus

unread,
Nov 15, 2009, 6:11:52 AM11/15/09
to opkg-...@googlegroups.com
I tested this out, worked great.

Thanks
Reply all
Reply to author
Forward
0 new messages