Major Overhaul: OpenWrt Adopts Alpine’s APK as New Package Manager

Starting in November 2024, OpenWrt's snapshots and future stable builds will replace OPKG with APK for better package management.

In a bold and unexpected move, OpenWrt announced a major change: the venerable OPKG package manager has been replaced by APK. I hasten to clarify just in case – despite the name, APK here has nothing to do with Android’s APK (Android Package) files.

So, as of November 2024, OpenWrt’s snapshots from the main development branch and future stable releases will use APK for package management.

For those unfamiliar, OpenWrt is a Linux-based operating system widely used on routers and other network equipment, allowing users to customize their devices far beyond the original firmware’s capabilities. With this recent shift, the package managerโ€”essentially the tool that allows users to install, update, and remove software on their devicesโ€”has changed.

The new APK package manager, which is actually Alpine Linux‘s package manager, offers several advantages over the previous OPKG. It’s lightweight and efficientโ€”perfect qualities for a system like OpenWrt, where memory and processing power are often limited.

OpenWrt's shell.
OpenWrt’s shell.

In addition, Alpine’s APK provides a more robust and powerful experience, with better dependency handling and more advanced features, ultimately making OpenWrt even more capable.

Adding packages is substantially the same with both package managers. One difference is that APK requires valid signatures for all packages, while OPKG ignores this requirement for local ones. Therefore, if you’re installing a non-standard (self-built) package, use the --allow-untrusted option.

Once again, it’s important to note that this change only affects snapshots from the main development branch and upcoming versions. The current stable branch, OpenWrt 23.05, remains unaffected, and as of mid-November 2024, even the 24.10 branch still relies on OPKG.

For more information, refer to the official announcement or check out the discussion on the OpenWrt forum.

Lastly, if you’re feeling uneasy about this change and aren’t confident in using the APK package manager, let me reassure youโ€”it’s actually quite simple! We’ve ensured you have a helpful resource at your fingertips. Just check out our “Alpine User’s Guide to APK: How to Manage Packages,” and you’ll see exactly what I mean.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%