码迷,mamicode.com
首页 > 其他好文 > 详细

Yocto tips (15): Yocto中的包管理器

时间:2017-06-18 22:49:08      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:span   使用   neon   lan   url   img   tracking   软件包   type   

使用包管理器

在local.conf中使能就可以:

技术分享

然后编译后就会有rpm包了:

技术分享

配置文件server

能够使用ngix和apache。可是我们也能够仅仅用使用python:

python -m SimpleHTTPServer


技术分享

打开浏览器能够看到:

技术分享

在机器上面查看包的status

smart status

技术分享技术分享


在机器上面配置channel

对于rpm使用的smart工具,加入channel:

smart channel --add all type=rpm-md baseurl=http://192.168.2.100:8000/all
smart channel --add  cortexa9hf_vfp_neon  type=rpm-md baseurl=http://192.168.2.100:8000/cortexa9hf_vfp_neon 
smart channel --add cortexa9hf_vfp_neon_mx6qdl type=rpm-md baseurl=http://192.168.2.100:8000/cortexa9hf_vfp_neon_mx6qdl
smart channel --add imx6qsabresd type=rpm-md baseurl=http://192.168.2.100:8000/imx6qsabresd


加入參数之后。就能够update了:

smart update

正确的是以下命令的情形:

技术分享

假设配置參数不正确,那么就会出错。假设出错。那么检查IP与格式是否正确。比如以下的http少了两个//:

技术分享

假设弄错了。那么能够先移除掉:

smart channel --remove all cortexa9hf_vfp_neon_mx6qdl imx6qsabresd cortexa9hf_vfp_neon

然后又一次加入。

再看包的数量,能够看到变多了:

技术分享技术分享


使用包管理器安装软件

使用smart install Package就可以安装:

技术分享


假设在PC中使用bitbake新编译了程序,那么须要使用以下命令重建index,否则客服端找不到新的软件包:

bitbake package-index

參考:

http://www.jumpnowtek.com/yocto/Using-your-build-workstation-as-a-remote-package-repository.html

package-manager-white-paper.pdf


Yocto tips (15): Yocto中的包管理器

标签:span   使用   neon   lan   url   img   tracking   软件包   type   

原文地址:http://www.cnblogs.com/cxchanpin/p/7045563.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!