Useful commands:
opkg list-installed
opkg search name_packet
opkg whatdepends name_packet
opkg remove name_packet
for this command there are important options:
-force-depends
-force-removal-of-dependent-packages
opkg install name_packet
Install a web server in the virtual machine, e.g.:
sudo apt-get install apache2
Copy the built packages inside the web server directory, e.g.:
sudo cp -r /home/architech/architech_sdk/pengwyn/yocto/build/tmp/deploy/ipk /var/www
Create a file named <something>.conf (e.g. mine-repositories.conf) under /etc/opkg/ of the Pengwyn file system and fill it with the following lines:
src/gz arm http://192.168.0.100/ipk/armv7a-vfp-neon
src/gz all http://192.168.0.100/ipk/all
src/gz pengwyn http://192.168.0.100/ipk/pengwyn
Note
192.168.0.100 is the server IP where there is the web server with repository
after that run the following command from Pengwyn’s shell:
opkg update
Now you are ready to download and install the packages from the network.
With “opkg list | wc -l” you can know approximately how many packets there are in repository
opkg list | wc -l
opkg update
opkg list | wc -l
If the updating got success with the last command you see the number of packets incremented.
cd /home/architech/architech_sdk/architech/pengwyn/yocto
source yocto/oe-init-build-env
bitbake package-index
opkg update