我们可以从 repo 安装所有内容吗?

我们可以从 repo 安装所有内容吗?

我们可以做什么apt-get install *(安装 repo 中的所有内容)?如果可以,需要多少 GB?

答案1

安装大小取决于的内容/etc/apt/sources.list和列表文件,/etc/apt/sources.list.d但将是约 680 GB


你不能通过以下方式安装所有软件包

sudo apt-get install *

为什么?见下文。

但是你可以用这个命令,但你不应该这么做!拜托。好吗?

可以吗?!可以我相信你

好的。

aptitude -F %p search '!~i!~v' | xargs sudo apt-get install

sudo apt-get install *如果您在终端中启动该命令,bash您将看到类似这样的内容(它取决于您当前文件夹的内容)。

$ sudo apt-get install *
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package brackets
E: Unable to locate package brackets-shell
E: Unable to locate package Dosis-Bold.otf
E: Couldn't find any package by regex 'Dosis-Bold.otf'
E: Unable to locate package Dosis-ExtraBold.otf
E: Couldn't find any package by regex 'Dosis-ExtraBold.otf'
E: Unable to locate package Dosis-ExtraLight.otf
E: Couldn't find any package by regex 'Dosis-ExtraLight.otf'
E: Unable to locate package Dosis-Light.otf
E: Couldn't find any package by regex 'Dosis-Light.otf'
E: Unable to locate package Dosis-Medium.otf
E: Couldn't find any package by regex 'Dosis-Medium.otf'
E: Unable to locate package Dosis-Regular.otf
E: Couldn't find any package by regex 'Dosis-Regular.otf'
E: Unable to locate package Dosis-SemiBold.otf
E: Couldn't find any package by regex 'Dosis-SemiBold.otf'
E: Unable to locate package dosis.zip
E: Couldn't find any package by regex 'dosis.zip'
E: Unable to locate package makefiletab3
E: Unable to locate package projectlibre_1.6.1-1.deb
E: Couldn't find any package by regex 'projectlibre_1.6.1-1.deb'
E: Unable to locate package SIL Open Font License.txt
E: Couldn't find any package by regex 'SIL Open Font License.txt'
E: Unable to locate package virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb
E: Couldn't find any package by regex 'virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb'

将错误消息与输出进行比较

$ ls -lsog
total 74960
    4 drwxrwx---   5     4096 Aug 31 20:09 .
   84 drwxr-xr-x 246    86016 Aug 31 21:54 ..
    4 drwxrwxr-x   8     4096 Aug 30 13:45 brackets
    4 drwxrwxr-x  12     4096 Aug 30 13:57 brackets-shell
   60 -rw-rw-r--   1    59588 Jul  5  2013 Dosis-Bold.otf
   60 -rw-rw-r--   1    57896 Jul  5  2013 Dosis-ExtraBold.otf
   60 -rw-rw-r--   1    57888 Jul  5  2013 Dosis-ExtraLight.otf
   60 -rw-rw-r--   1    59028 Jul  5  2013 Dosis-Light.otf
   60 -rw-rw-r--   1    58396 Jul  5  2013 Dosis-Medium.otf
   60 -rw-rw-r--   1    59944 Jul  5  2013 Dosis-Regular.otf
   60 -rw-rw-r--   1    58524 Jul  5  2013 Dosis-SemiBold.otf
  256 -rw-rw-r--   1   261233 Aug 31 20:09 dosis.zip
    0 -rw-rw----   1        0 Jul 17 17:36 .foo
    0 -rw-rw----   1        0 Jul 17 18:10 .foo.bar
    4 drwxrwxr-x   4     4096 Aug 30 20:09 makefiletab3
12380 -rw-rw-r--   1 12675606 Aug 30 14:31 projectlibre_1.6.1-1.deb
    8 -rw-rw-r--   1     4529 Aug 31 14:09 SIL Open Font License.txt
61792 -rw-rw-r--   1 63270648 Aug 30 17:23 virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb
    0 -rw-rw-r--   1        0 Aug  5 21:13 .vminfo
    4 -rw-rw-r--   1      172 Aug  2 19:35 .zip
    0 -rw-rw----   1        0 Jul 17 17:36 .zzyGir

全清?;)

相关内容