deb-cli

module
v0.0.0-...-7313383 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: MIT

README

deb 包操作

包导入

go get github.com/myml/deb-cli/control

包使用

ctl, _ := control.Unmarshal(data)
err := ctl.DependAdd("libc6")
data,_ := control.Marshal(ctl)

另参见测试用例

CLI 参数

  -a string
        add to control
  -add string
        add to control
  -d string
        delete from control
  -delete string
        delete from control
  -i string
        input file (default "-")
  -input string
        input file (default "-")
  -o string
        output file (default "-")
  -output string
        output file (default "-")
  -t string
        type (default "Depends")
  -type string
        field name (default "Depends")

CLI 示例

添加依赖

deb-cli -i wget-1.18-5+deb9u2.deb -o /tmp/1.deb -a "libc6,libc5,libc4"

删除依赖

deb-cli -i wget-1.18-5+deb9u2.deb -o /tmp/1.deb -d "libc6"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL