找回密码
 立即注册
查看: 2944|回复: 1

View source for 如何在Meego上静默安装deb包

[复制链接]
发表于 2014-2-1 12:09:32 | 显示全部楼层 |阅读模式
You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in one of the groups: Users, techwriter.

You can view and copy the source of this page:

  1. [[Category:Qt]][[Category:MeeGo Harmattan]][[Category:Lang-Chinese]]
  2. {{Abstract|本文介绍如何在后台静默安装deb包}}


  3. {{ArticleMetaData
  4. |sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
  5. |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
  6. |devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
  7. |sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
  8. |platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
  9. |devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
  10. |signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
  11. |capabilities=<!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
  12. |keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
  13. |id= <!-- Article Id (Knowledge base articles only) -->
  14. |language=<!-- Language category code for non-English topics - e.g. Lang-Chinese -->
  15. |review-by=<!-- After re-review: [[User:username]] -->
  16. |review-timestamp=<!-- After re-review: YYYYMMDD -->
  17. |update-by=<!-- After significant update: [[User:username]]-->
  18. |update-timestamp=<!-- After significant update: YYYYMMDD -->
  19. |creationdate= <!-- Format YYYYMMDD -->
  20. |author= <!-- Display as link [[User:username]] -->
  21. }}

  22. == 介绍 ==

  23. 程序有升级版本后,将deb包下载到本地目录,然后可以通过以下方法调用meego命令:

  24. <code>
  25. pkgmgr install-file –f /home/user/MyDocs/my_0_0_1_armel.deb
  26. </code>

  27. == 操作==
  28. 通过 QProcess 可以调用上面的代码

  29. <code>
  30.     QProcess p;
  31.     p.start( QString("pkgmgr"),QStringList() <<"install-file" <<"-f"<<"/home/user/MyDocs/i18nmeego_0_0_1_armel.deb");

  32.     p.waitForFinished();
  33.     qDebug() << "DPKG OUTPUT:" << p.exitCode() << p.errorString() << p.readAllStandardError() << p.readAllStandardOutput();
  34. </code>

  35. == 示例 ==
  36. *[[media:SilentInstall.zip&#8206;]]

  37. == 相关链接 ==
  38. *[[Meego开发]]<br>
  39. *[[Qt Mobility 开发]]<br>
  40. *[[Qt Quick (Chinese)]]<br>
复制代码
欢迎来到泰泽网:http://www.tizennet.com/ 泰泽论坛:http://bbs.tizennet.com/ 好没有内涵哦,快到设置中更改这个无聊的签名吧!
回复

使用道具 举报

发表于 2014-2-1 12:10:22 | 显示全部楼层

欢迎来到泰泽网:http://www.tizennet.com/ 泰泽论坛:http://bbs.tizennet.com/ 好没有内涵哦,快到设置中更改这个无聊的签名吧!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|泰泽应用|泰泽论坛|泰泽网|小黑屋|Archiver|手机版|泰泽邮箱|泰泽网 ( 蜀ICP备13024062号-1 )

GMT+8, 2024-11-1 07:08 , Processed in 0.104305 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表