I installed opkg on top of linux kernel built using buildroot and I am running this on qemu. When I do 'opkg update' I do not get any failure messages but no packages are downloaded. My internet connection is good since I am able to ping.
# opkg update
# ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link
inet6 addr: fec0::5054:ff:fe12:3456/64 Scope:Site
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4347 (4.2 KiB) TX bytes:2555 (2.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# ping downloads.openwrt.org
PING downloads.openwrt.org (168.119.138.211): 56 data bytes
64 bytes from 168.119.138.211: seq=0 ttl=255 time=136.639 ms
64 bytes from 168.119.138.211: seq=1 ttl=255 time=134.218 ms
64 bytes from 168.119.138.211: seq=2 ttl=255 time=133.425 ms
64 bytes from 168.119.138.211: seq=3 ttl=255 time=128.448 ms
64 bytes from 168.119.138.211: seq=4 ttl=255 time=132.817 ms
^C--- downloads.openwrt.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 128.448/133.109/136.639 ms
# opkg update
# opkg --version
opkg version 0.4.5
#
@jayashree505 - to be clear, OpenWrt is its own Linux "distribution", meaning you don't install it on top of another OS. Images are available for use in virtualization.
For OpenWrt for x86_64 and the virtualization Wiki, see:
Thank you all for the clarifications. I have a better idea now. I was confused because buildroot documentation said that package managers are not supported, but opkg was still an option on menuconfig. Upon searching I found Openwrt and assumed it might be somewhat similar... I think I can try using openwrt since it supports opkg.
Just to set expectations here -- OpenWrt is a special case linux environment that is optimized for a very specific set of criteria, namely:
small footprint, currently supporting as little as 8MB of storage and 64MB RAM (yes - megabytes), although the requirements will be increasing with the next major release, aimed to run on small embedded devices like consumer all-in-one wifi routers
focus on routing and networking -- it is primarily intended for use as a router firmware, although it is extensible to do many other things. But it is not, and never will be, a full 'big distro' general purpose desktop OS.
So when you say that you can "try using" OpenWrt because of the act that it supports opk, can you describe what it is that you are trying to achieve (and also on what device)?