匿名
未登录
登录
百问网嵌入式Linux wiki
搜索
查看“Dpkg”的源代码
来自百问网嵌入式Linux wiki
名字空间
页面
讨论
更多
更多
页面选项
Read
查看源代码
历史
←
Dpkg
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
==Article purpose== This article aims to give information required to start with the Linux tool: dpkg<ref>https://linux.die.net/man/1/dpkg</ref> ==Introduction== <onlyinclude> [[Dpkg|dpkg]] is the basic tool to deal with this package manager. A package manager is helpful for installing, removing and updating package in the rootfs. A package is an archive with .deb extension that contains a set of files but also a set of installing/removing scripts. Any package provides two kind of artifacts: * metadata: collection of scripts and configs needs to correctly install data of the package * data: applications, libraries, and any files to copy to the rootfs </onlyinclude> ==Getting Started== ''dpkg'' can be very helpful to know which file of the rootfs belongs to which package. Keep in mind that the OpenSTLinux distribution has been generated with OpenEmbedded. There is a direct parity between 'recipes' and 'packages'. Indeed an OpenEmbedded recipe describes how to get sources code, how to compile it, where to install built artifacts on filesystem and also which 'dpkg' packages to create and which files to put in. That is why it can be very interesting to list the files that belong to a package or to find a package that belongs to a file. Here a short list of useful commands with 'dpkg': * How to list the currently installed packages $> dpkg -l * How to install a package: $> dpkg -i ''<packageName>''.deb * How to remove/uninstalling a package $> dpkg -r ''<packageName>'' * How to list files of a package $> dpkg -L ''<packageName>'' * How to find a package that belongs to a file $> dpkg -S ''</absolute/path/to/a/file/of/target>'' ==References== <references/> <noinclude> [[Category:OpenSTLinux distribution]] {{PublicationRequestId | 15052 | 2020-02-21}} </noinclude>
该页面使用的模板:
模板:PublicationRequestId
(
查看源代码
)
返回至
Dpkg
。
导航
导航
WIKI首页
官方店铺
资料下载
交流社区
所有页面
所有产品
MPU-Linux开发板
MCU-单片机开发板
Linux开发系列视频
单片机开发系列视频
所有模块配件
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志