使用包管理器
在local.conf中使能即可:

然后編譯后就會有rpm包了:

配置文件服務器
可以使用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](http://www.jumpnowtek.com/yocto/Using-your-build-workstation-as-a-remote-package-repository.html)
[package-manager-white-paper.pdf](#)
- 前言
- (1): Yocto 編譯后文件放在了哪里 輸出文件位置
- (2): Yocto Linux內核編譯目錄在哪?
- (3): Yocto 如何重新編譯Linux內核與dtb,并放到deploy目錄?
- (4): Yocto 如何確定(找到)一個包的名字
- (5): Yocto如何更改source code的下載與git clone地址
- (6): Yocto中如何共享已經下載的文件
- (7): Yocto Bitbake的clean與cleanall以及cleansstate的區別
- (8): Yocto 如何加快軟件包的下載 如何只下載所有需要的軟件包而不編譯
- (9): Yocto 軟件包的下載地址在哪
- (10): Yocto hellworld 添加一個軟件包
- (11): Yocto如何往最終的rootfs中添加軟件
- (12): 使用Yocto幫組我們尋找難找的固件與固件放置路徑
- (13): Yocto 查看軟件包的依賴關系
- (14): Yocto中編譯鏈的配置變更(tuning)
- (15): Yocto中的包管理器
- (16): Yocto 制作SDK分發Toolchain 脫離Yocto環境開發
- (17): Yocto License問題:restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
- (18): Yocto SDK Toolchian中靜態庫的添加
- (19): Yocto SDK Toolchian的使用