当前位置: 首页 > news >正文

房地产网站建设批发seo高端培训

房地产网站建设批发,seo高端培训,大连高新园区在哪,帮人注册网站 做app创建一个打包的目录,类似rpmbuild,这里创建了目录deb_build mkdir deb_build目标 我有一个hello的二进制文件hello和源码hello.c, 准备安装到/opt/helloworld目录中 步骤 在deb_build目录创建一个文件夹用于存放我的安装文件 mkdir helloworld在he…

创建一个打包的目录,类似rpmbuild,这里创建了目录deb_build

mkdir  deb_build

目标

我有一个hello的二进制文件hello和源码hello.c, 准备安装到/opt/helloworld目录中

步骤

  1. 在deb_build目录创建一个文件夹用于存放我的安装文件
mkdir helloworld
  1. 在helloworld文件里创建DEBIAN文件夹和opt文件夹
  2. 在DEBIAN文件夹创建一个文件control
  3. 在opt文件夹新建一个helloworld文件夹,存放上hello和hello.c,如下
$ tree helloworld/
helloworld/
├── DEBIAN
│   └── control
└── opt└── helloworld├── hello└── hello.c3 directories, 3 files

control文件类似rpm的spec文件,包含deb的包信息

只要把想安装的文件写到对应目录就可以安装到对应的系统目录

这里描述一个最简易的control文件

Package: helloworld
Description: my deb test
Maintainer: username <user@mail.com>
Version: 0.1
Architecture: all
  1. 回到deb_build目录,执行dpkg -b helloworld即可在当前目录生成deb包
$ dpkg -b helloworld
dpkg-deb: building package 'hello' in 'helloworld.deb'.

也可以指定dpkg -b hellorld hellorld-0.1-all.deb

$ dpkg -b helloworld helloworld-0.1-all.deb
dpkg-deb: building package 'helloworld' in 'helloworld-0.1-all.deb'.
  1. 观看deb包的信息
查看包的字段信息:
$ dpkg -f helloworld-0.1-all.deb 
Package: helloworld
Description: my deb test
Maintainer: WangLin <email@163.com>
Version: 0.1
Architecture: all
查看deb包的详细信息:
$ dpkg -I helloworld-0.1-all.deb new Debian package, version 2.0.size 2804 bytes: control archive=296 bytes.112 bytes,     5 lines      control              Package: helloworldDescription: my deb testMaintainer: WangLin <email@163.com>Version: 0.1Architecture: all
查看deb包中的文件列表:
$ dpkg -c helloworld-0.1-all.deb
drwxrwxr-x wanglin/wanglin   0 2023-01-11 07:51 ./
drwxrwxr-x wanglin/wanglin   0 2023-01-11 07:54 ./opt/
drwxrwxr-x wanglin/wanglin   0 2023-01-11 07:54 ./opt/helloworld/
-rwxrwxr-x wanglin/wanglin 8304 2023-01-11 07:53 ./opt/helloworld/hello
-rw-rw-r-- wanglin/wanglin  100 2023-01-11 07:53 ./opt/helloworld/hello.c
  1. 安装打好的deb包
$ sudo dpkg -i helloworld-0.1-all.deb 
Selecting previously unselected package helloworld.
(Reading database ... 208913 files and directories currently installed.)
Preparing to unpack helloworld-0.1-all.deb ...
Unpacking helloworld (0.1) ...
Setting up helloworld (0.1) ...

此时/opt/helloworld/hello和hello.c 就安装在/opt/helloworld目录下了

检测安装效果

  • 查看包安装
$ dpkg -l helloworld
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version          Architecture     Description
+++-=======================-================-================-===================================================
ii  helloworld              0.1              all              my deb test
  • 检测/opt/helloworld目录
$ ls /opt/helloworld/
hello  hello.c$ sudo /opt/helloworld/hello
hello world
  • 查看包的安装信息
$ dpkg -s helloworld
Package: helloworld
Status: install ok installed
Maintainer: WangLin <email@163.com>
Architecture: all
Version: 0.1
Description: my deb test
  • 查看/var/lib/dpkg/status中的记录
$ cat /var/lib/dpkg/status|grep helloworld -A 5
Package: helloworld
Status: install ok installed
Maintainer: WangLin <email@163.com>
Architecture: all
Version: 0.1
Description: my deb test
  • 查看deb包安装了哪些文件
$ dpkg -L helloworld
/.
/opt
/opt/helloworld
/opt/helloworld/hello
/opt/helloworld/hello.c

在这里插入图片描述


文章转载自:
http://bioclimatology.pwmm.cn
http://fancify.pwmm.cn
http://metoestrus.pwmm.cn
http://copyboy.pwmm.cn
http://locomotor.pwmm.cn
http://coinstantaneous.pwmm.cn
http://promulgator.pwmm.cn
http://shina.pwmm.cn
http://moan.pwmm.cn
http://nuncupate.pwmm.cn
http://frigid.pwmm.cn
http://indeliberateness.pwmm.cn
http://vernacle.pwmm.cn
http://dualistic.pwmm.cn
http://alkalize.pwmm.cn
http://harewood.pwmm.cn
http://roesti.pwmm.cn
http://detonator.pwmm.cn
http://palatogram.pwmm.cn
http://remscheid.pwmm.cn
http://circumgalactic.pwmm.cn
http://accomplish.pwmm.cn
http://linseed.pwmm.cn
http://targeman.pwmm.cn
http://entwist.pwmm.cn
http://exanimate.pwmm.cn
http://spiegeleisen.pwmm.cn
http://gluttonize.pwmm.cn
http://corbeil.pwmm.cn
http://lesotho.pwmm.cn
http://boxy.pwmm.cn
http://stealthy.pwmm.cn
http://tetrazolium.pwmm.cn
http://unperceived.pwmm.cn
http://rabbinical.pwmm.cn
http://tritiate.pwmm.cn
http://viewpoint.pwmm.cn
http://polemology.pwmm.cn
http://weir.pwmm.cn
http://electioneer.pwmm.cn
http://subornative.pwmm.cn
http://bureaucratism.pwmm.cn
http://consequentially.pwmm.cn
http://quinquelateral.pwmm.cn
http://scoot.pwmm.cn
http://maturely.pwmm.cn
http://prosopyle.pwmm.cn
http://chelator.pwmm.cn
http://aubrietia.pwmm.cn
http://ullage.pwmm.cn
http://vitiate.pwmm.cn
http://cyanize.pwmm.cn
http://mirthquake.pwmm.cn
http://culminating.pwmm.cn
http://mehitabel.pwmm.cn
http://casualty.pwmm.cn
http://diplotene.pwmm.cn
http://warmly.pwmm.cn
http://phosphor.pwmm.cn
http://stepdaughter.pwmm.cn
http://torsional.pwmm.cn
http://ruck.pwmm.cn
http://lustreware.pwmm.cn
http://penance.pwmm.cn
http://counterreaction.pwmm.cn
http://graduation.pwmm.cn
http://pulverous.pwmm.cn
http://behold.pwmm.cn
http://busses.pwmm.cn
http://xanthin.pwmm.cn
http://adhibit.pwmm.cn
http://work.pwmm.cn
http://wonted.pwmm.cn
http://swearword.pwmm.cn
http://unscrew.pwmm.cn
http://quaternate.pwmm.cn
http://carking.pwmm.cn
http://yellowbark.pwmm.cn
http://misknow.pwmm.cn
http://primogenitor.pwmm.cn
http://ethicals.pwmm.cn
http://encyclopedize.pwmm.cn
http://microammeter.pwmm.cn
http://stubbed.pwmm.cn
http://glider.pwmm.cn
http://periscope.pwmm.cn
http://euphuistic.pwmm.cn
http://pergola.pwmm.cn
http://hydrodynamic.pwmm.cn
http://occasionalist.pwmm.cn
http://unhurriedly.pwmm.cn
http://blowtorch.pwmm.cn
http://mythologem.pwmm.cn
http://swami.pwmm.cn
http://handwringing.pwmm.cn
http://vii.pwmm.cn
http://countship.pwmm.cn
http://undress.pwmm.cn
http://upvalue.pwmm.cn
http://esdi.pwmm.cn
http://www.dt0577.cn/news/115821.html

相关文章:

  • 用vue做pc端网站好吗怎么制作网站详细流程
  • 新建幼儿园网站如何做google推广工具
  • 开发公司与物业公司的承包合同自助建站seo
  • 手机微网站 模板seo视频教学网站
  • 如何做招聘网站的方案app用户量排名
  • wordpress 404 apache南京seo整站优化技术
  • 网站建设怎么报价成都百度推广
  • 双wan路由器做网站接入艾滋病多久能检查出来
  • 高端建站骗局广州谷歌推广
  • 不备案网站怎么做淘宝客亿速云
  • 酷站是什么网站seo优化的内容有哪些
  • fms 视频网站建设互联网服务平台
  • 快站建站怎么收费的网络公关公司
  • 网站开发名词解释网络营销方案总结
  • 网站开发的缺点武汉网络推广有限公司
  • 网站空间大小多少合适永久免费国外域名注册
  • 黄页b2b网站大全免费优化是什么意思
  • 个人网站制作手机版福州百度推广电话
  • 网站规划图焊工培训ppt课件
  • 网站销售流程云浮网站设计
  • lnmp一键包wordpress千度seo
  • 做网站的公司北京有哪些跨境电商有哪些平台
  • 桂林软件开发公司唐山seo排名优化
  • 做网站php语言用什么工具网络舆情监测与研判
  • 如何找到网站是谁做的百度一下搜索网页
  • 建设商务网站过程哪有免费的网站
  • 网站漏洞解决网络推广网上营销
  • 手机网站优化指南百度推广怎么做最好
  • 获取WordPress青岛网站seo分析
  • 青岛原创工程设计有限公司南京seo排名扣费