Install packages on SD card with Arduino Yun

What is the proper way to use opkg to install packages to the SD card?

Add a line like this: 'dest disk /mnt/sda1' to your /etc/opkg.conf file and you can specify 'disk' as your installation directory; note that your disk needs to be formatter as an ext2 or ext3 filing system if the installed stuff wants to create soft links (FAT doesn't support soft links).

kind regards,

Jos

How can I specify 'disk' to become the installation directory? Is it by setting it to root? Like this:
dest root /mnt/sda1

JosAH:
Add a line like this: 'dest disk /mnt/sda1' to your /etc/opkg.conf file and you can specify 'disk' as your installation directory; note that your disk needs to be formatter as an ext2 or ext3 filing system if the installed stuff wants to create soft links (FAT doesn't support soft links).

kind regards,

Jos

Jos, You are the man. You saved my day just now. I just added 64GB USB storage to my Arduino Yun and turned it into a developer server. Cheers.

nimoov:
How can I specify 'disk' to become the installation directory? Is it by setting it to root? Like this:
dest root /mnt/sda1

In /etc/opkg.conf, add a line like "dest disk /mnt/sda2" where /mnt/sda2 is the mounted ext4 partition on your USB stick (many people only have a single partition on USB. I created a 1GB swap partition for Yun's openwrt linux as /mnt/sda1).

Then when you do opkg install, do something like this "opkg install -d disk gcc". opkg will install the big package gcc to "disk", which is /mnt/sda2 according to your previous setup.