Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1743451
  • 博文数量: 297
  • 博客积分: 285
  • 博客等级: 二等列兵
  • 技术积分: 3006
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-06 22:04
个人简介

Linuxer, ex IBMer. GNU https://hmchzb19.github.io/

文章分类

全部博文(297)

文章存档

2020年(11)

2019年(15)

2018年(43)

2017年(79)

2016年(79)

2015年(58)

2014年(1)

2013年(8)

2012年(3)

分类: LINUX

2015-08-01 12:42:29

最近坑坏了,给我一些不能联通外网的Ubunbu让我来装软件包。好在我用一台当跳板,先把包给装了。然后发现apt-get 安装的包其实都有保存的。
保存目录如下:

点击(此处)折叠或打开

  1. /var/cache/apt/archives
经过两次scp 拷贝过去。下面记录下Ubuntu的一些命令

点击(此处)折叠或打开

  1. dpkg --contents cpp-4.9_4.9.2-10ubuntu13_ppc64el.deb
  2. dpkg --info cpp-4.9_4.9.2-10ubuntu13_ppc64el.deb
  3. dpkg -i                            #install
  4. dpkg -r                            #remove
  5. dpkg -P                            #remove
  6. dpkg -L                       

  -b|--build <directory> [<deb>]   Build an archive.
  -c|--contents <deb>              List contents.
  -I|--info <deb> [<cfile> ...]    Show info to stdout.
  -W|--show <deb>                  Show information on package(s)
  -f|--field <deb> [<cfield> ...]  Show field(s) to stdout.
  -e|--control <deb> [<directory>] Extract control info.
  -x|--extract <deb> <directory>   Extract files.
  -X|--vextract <deb> <directory>  Extract & list files.
  -R|--raw-extract <deb> <directory>
                                   Extract control info and files.
  --ctrl-tarfile <deb>             Output control tarfile.
  --fsys-tarfile <deb>             Output filesystem tarfile.


  -?, --help                       Show this help message.
      --version                    Show the version.


阅读(1017) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~