问题描述
我使用的buildroot创建一个根文件系统在我的ARM平台上运行。
我想有我的平台上的软件包管理器方便的安装包,在Ubuntu apt-get一样。
我发现opkg,谁可以简单地添加到buildroot的身材,但我无法找到有关如何找到一个库中的任何信息。
此外,读一些东西,这个在网络上,我也读到的buildroot不包括的软件包管理器。是不是opkg的软件包管理器?或者只是某种前端去取包?
我真的不明白的软件包管理器组成的,我不觉得这个的任何信息。
有人能解释一下什么是真正需要实现的那种经理,或在哪里可以找到这样的信息?
感谢
opkg is based on ipkg. It looks like it tries to provide all the features of apt-get
.
Package managers provide many different features. As they have evolved, different layers of ease for the end user has been added. Generally, they started in the Linux desktop or server space and have been ported for use in embedded systems.
Some differences; an embedded system is usually single tasked. A package management system allows the user to pick and choose what is installed. Often, an embedded system might not want to allow a user to pick and choose packages. Of course, it depends on the applications.
Some package management features,
- Building and patching.
- Package dependency and hence package database.
- Package migration.
- Package specialization.
- Automated download
- Minimize download time/bandwidth.
Rpm, dpkg, ipkg are typically only fulfilling items 1-4. Buildroot doesn't even do this, only item one is really relevant. The reason is that Buildroot is intended to build software for a fixed system that will never be updated. It doesn't make sense to have a file system with network update and package migration, it there is not network connection or external storage in the device. Also, Buildroot tries to be minimal and these extra features have a cost.
LTIB provide a system to create items 1-3, but not the network download. Also, out of the box, it is rather in-efficient in RPM size. Item 4, leads to typical devel and deploy packages. In order to build a library, you need header files to compile dependent packages. A typical LTIB rpm includes all the header files. It is an easy task to make sub-packages that exclude these headers and man pages, etc.
OpenWrt works well for routers, but if you need graphics, sound and other features the packages may not be available. There are various file system builders, but due to the amount of variations, each has costs and benefits. Just as there are many Linux desktop and server distributions, there are many root filesystem builder with different package management options. You have to evaluate the strengths for you application and system.
这篇关于Buildroot里面包同治的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!