中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

房地產(chǎn)網(wǎng)站建設(shè)批發(fā)互聯(lián)網(wǎng)推廣工作好做嗎

房地產(chǎn)網(wǎng)站建設(shè)批發(fā),互聯(lián)網(wǎng)推廣工作好做嗎,外貿(mào)網(wǎng)站如何做推廣多少錢,做網(wǎng)站還是app創(chuàng)建一個打包的目錄,類似rpmbuild,這里創(chuàng)建了目錄deb_build mkdir deb_build目標(biāo) 我有一個hello的二進制文件hello和源碼hello.c, 準(zhǔn)備安裝到/opt/helloworld目錄中 步驟 在deb_build目錄創(chuàng)建一個文件夾用于存放我的安裝文件 mkdir helloworld在he…

創(chuàng)建一個打包的目錄,類似rpmbuild,這里創(chuàng)建了目錄deb_build

mkdir  deb_build

目標(biāo)

我有一個hello的二進制文件hello和源碼hello.c, 準(zhǔn)備安裝到/opt/helloworld目錄中

步驟

  1. 在deb_build目錄創(chuàng)建一個文件夾用于存放我的安裝文件
mkdir helloworld
  1. 在helloworld文件里創(chuàng)建DEBIAN文件夾和opt文件夾
  2. 在DEBIAN文件夾創(chuàng)建一個文件control
  3. 在opt文件夾新建一個helloworld文件夾,存放上hello和hello.c,如下
$ tree helloworld/
helloworld/
├── DEBIAN
│   └── control
└── opt└── helloworld├── hello└── hello.c3 directories, 3 files

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

只要把想安裝的文件寫到對應(yīng)目錄就可以安裝到對應(yīng)的系統(tǒng)目錄

這里描述一個最簡易的control文件

Package: helloworld
Description: my deb test
Maintainer: username <user@mail.com>
Version: 0.1
Architecture: all
  1. 回到deb_build目錄,執(zhí)行dpkg -b helloworld即可在當(dāng)前目錄生成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://www.risenshineclean.com/news/55148.html

相關(guān)文章:

  • 青島網(wǎng)站關(guān)鍵詞優(yōu)化公司競價外包托管費用
  • 手機版網(wǎng)站建設(shè)seo優(yōu)化的搜索排名影響因素主要有
  • 鄭州軟件公司排名荊州網(wǎng)站seo
  • 網(wǎng)站建設(shè)維護員是做什么的seo簡介
  • 網(wǎng)站建設(shè)定制開發(fā)價格廣告推廣渠道有哪些
  • wordpress修改郵件地址搜索引擎營銷優(yōu)化
  • 中國十大品牌網(wǎng)官網(wǎng)seo工具下載
  • 邯鄲網(wǎng)站建設(shè)效果注冊推廣賺錢一個80元
  • 備案不關(guān)閉網(wǎng)站的方法電腦版百度
  • 創(chuàng)意網(wǎng)站十大教育培訓(xùn)機構(gòu)排名
  • 用wordpress建仿站信陽百度推廣公司電話
  • 在萬網(wǎng)上域名了怎么做網(wǎng)站寧波網(wǎng)站推廣公司報價
  • wordpress仿站全套百度引擎搜索
  • 畢設(shè)做網(wǎng)站可能遇到的問題搜索引擎優(yōu)化涉及的內(nèi)容
  • 如何做產(chǎn)品網(wǎng)站網(wǎng)頁設(shè)計登封網(wǎng)站設(shè)計
  • 網(wǎng)站優(yōu)化內(nèi)鏈怎么做如何做網(wǎng)站推廣私人
  • 做的網(wǎng)站沒給我備案騰訊競價廣告
  • 醫(yī)藥招商網(wǎng)站大全北京百度關(guān)鍵詞推廣
  • 重慶那里做網(wǎng)站外包好推蛙網(wǎng)絡(luò)
  • 站外推廣怎么做seo外鏈招聘
  • 中國男女做網(wǎng)站免費發(fā)布產(chǎn)品的平臺
  • 網(wǎng)站建設(shè)合作合同seo基礎(chǔ)
  • 海外網(wǎng)站服務(wù)器網(wǎng)址外貿(mào)接單網(wǎng)站
  • 梅州南站30條新聞?wù)?/a>
  • 如何用div和css做購物網(wǎng)站關(guān)鍵詞歌詞打印
  • wordpress 3.4.2多地優(yōu)化完善疫情防控措施
  • 網(wǎng)站怎么維護更新bing搜索引擎入口
  • 學(xué)校門戶網(wǎng)站什么意思外貿(mào)網(wǎng)站大全
  • 深圳最近消息自己做seo網(wǎng)站推廣
  • 網(wǎng)站開發(fā)要服務(wù)器嗎東莞網(wǎng)站推廣企業(yè)