Linux : busybox,dpkg,apt-get,apt

I have discussed this blog  at 

APT-GET

  in detail. Please SUBSCRIBE Free Embedkari for many interesting technical topics.

I discussed about native debugging with gdb in  last blog post.   I strongly recommend you to read earlier blogs for better understanding . If you find something missing, Please provide feedback in comment box so that I can take corrective action.

Key TakeAway : Concept of Busybox, dpkg, apt-get, apt-cache, apt-mark, apt  with demo.

Busybox : The Swiss Army Knife of Embedded Linux 

It combines many small optimized utilities into a single binary. You may find it in normal desktop linux /bin folder but there are separate binaries for ls,cat,cp  etc . However , in Embedded Linux, you may find all these utilities linked to this single busybox binary .

Let me show you one common use case from a home router using telnet.

Step 1: Telnet should be disabled by default for network security. I have enabled it using GUI for testing purpose and simply removed the external internet  cable for security.

router_telnet_enable

Step 2: Start a telnet session to router IP using putty

Step 3: Login using admin credentials and check the implementation of different linux binaries. These are linked to busybox (ls /bin -lart —->busybox)

You can watch this GIF file.

step 4: Double check  the system OS and target

admin@RT-AC51U:/# uname -a

Linux RT-AC51U 2.6.36 #1 Fri Aug 17 16:42:51 CST 2018 mips GNU/Linux

admin@RT-AC51U:/# cat /proc/cpuinfo

system type : MT7620

processor : 0

cpu model : MIPS 24Kc V5.0

BogoMIPS : 386.04

wait instruction : yes

microsecond timers : yes

tlb_entries : 32

extra interrupt vector : yes

hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x03f8, 0x0fe0, 0x0bf8]

ASEs implemented : mips16 dsp

shadow register sets : 1

core : 0

VCED exceptions : not available

VCEI exceptions : not available

Software Package Management

Software packages for Linux distributions are based on different package formats such as deb(Debian,Ubuntu,Kali Linux), rpm(Red Hat,Fedora) etc. Hence different package installers such as apt,yum etc are available. Let me take the case of Ubuntu

Debian Package or dpkg

dpkg is the low-level package installer for Debian based operating systems such as Ubuntu, Kali Linux  etc. The file format used is deb

dpkg -l  //List of all installed packages

dpkg –help

Please note that dpkg will not check the dependency,install or configure automatically. There is a provision of another high level package manager for this purpose. These high level package managers apt* use dpkg for installation purpose

You may like to watch the dpkg Demo

Advance Packaging Tool apt-get , apt-cache, apt

You may like to watch the APT-Commands Demo

Busybox Help command

The detail in help may differ depending on its implementation. For ex :  Desktop Ubuntu provides complete information of busybox tftp –help

But in embedded linux , It may be as follows

If you liked this , Please share in your network. You may also like to read Library

Git  Terminology Video

Latest Linux QUIZ 

You may  find list of all interesting topics at

HowTo

Embedded System Training – March 2026

🚀 Start Strong with Early Enrollment Students who join the Developer Kit early will get access to current C Live […]

0 comments

Embedded System Training – Jan 2026

🚀 Start Strong with Early Enrollment Students who join the Developer Kit early will get access to current C Live […]

0 comments

Embedkari Course Upgradation Policy

We believe learning should grow with your commitment. Our Course Upgradation Policy allows members to smoothly progress to higher kits […]

0 comments

Comprehensive Embedded Systems Training Kits December-2025

🚀 Start Strong with Early Enrollment Students who join the Developer Kit early will get access to current C Live […]

0 comments

Embedkari Products

Course completion certification FEE will be applicable for courses less than 1K INR

0 comments

Comprehensive Embedded Systems Training Kits – November 2025

🚀 Start Strong with Early Enrollment Students who join the Developer Kit early will get access to current C Live […]

0 comments

Embedkari Internship 2025

This is for freshers looking for Embedded system Internship in India. Interested candidates can fill the form. It is suitable […]

0 comments

Comprehensive Embedded Systems Training Kits Live & Self-Paced Options – September 2025

Testimonials You may read this till end to understand the experience of Embedkari courses. Follow Embedkari on LinkedIn 🚀 Start […]

0 comments

Linux Application Development Training

Live Session Agenda ( C and Linux) Kernel – Recorded Linux Installation Linux – Basics Linux Basics – OSLinux Administration […]

0 comments

Learn C – Hands-on

Practice Topics How to Register ? Email: info@embedkari.com Whatsapp: +91 73493 50911 Developer Kit Enrollment Any new Developer kit student […]

0 comments

I am trying to improve usability of my  site.If you find something missing, Any feedback in comment box will help to  take corrective action.  Please subscribe to YouTube channel Embedkari  for additional embedded related stuff.




Exit mobile version