Skip to content

Instantly share code, notes, and snippets.

@y3ti
Created September 6, 2018 12:25
Show Gist options
  • Save y3ti/430d6d38bd0f8d00ff2d11599b860a4d to your computer and use it in GitHub Desktop.
Save y3ti/430d6d38bd0f8d00ff2d11599b860a4d to your computer and use it in GitHub Desktop.
Package managers comparison for Yocto Linux
$ (for i in tcpdump kernel-image xz busybox; do ls -lh {ipk,rpm,deb}/*/${i}[-_][0-9]*;echo; done) | awk '{printf "%5s   %s\n", $5,$9}'
 333K   deb/i586/tcpdump_4.9.2-r0_i386.deb
 333K   ipk/i586/tcpdump_4.9.2-r0_i586.ipk
 338K   rpm/i586/tcpdump-4.9.2-r0.i586.rpm
        
  710   deb/qemux86/kernel-image-4.14.48-yocto-standard_4.14.48+git0+94457657b8_65d1c84953-r0_i386.deb
  726   ipk/qemux86/kernel-image-4.14.48-yocto-standard_4.14.48+git0+94457657b8_65d1c84953-r0_qemux86.ipk
 5.8K   rpm/qemux86/kernel-image-4.14.48-yocto-standard-4.14.48+git0+94457657b8_65d1c84953-r0.qemux86.rpm
        
  41K   deb/i586/xz_5.2.3-r0_i386.deb
  41K   ipk/i586/xz_5.2.3-r0_i586.ipk
  49K   rpm/i586/xz-5.2.3-r0.i586.rpm
        
 285K   deb/i586/busybox_1.27.2-r0_i386.deb
 285K   ipk/i586/busybox_1.27.2-r0_i586.ipk
 319K   rpm/i586/busybox-1.27.2-r0.i586.rpm
# DEB
$ time dpkg -S /bin/busybox > /dev/null
real    0m0.131s
user    0m0.051s
sys     0m0.070s

# RPM
$ time dnf info /bin/busybox
real    0m4.955s
user    0m3.933s
sys     0m0.235s

# IPK
$ time opkg search /bin/busybox
real     0m0.269s
user     0m0.152s
sys      0m0.103s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment