是否可以从 APT 存储库安装所有软件包?

Kri*_*gen 7 linux packages installation

是否可以从 APT 存储库安装所有软件包?

我知道可以手动执行此操作,但是您需要知道所有包名称,而我不知道。有什么建议?

谢谢。

更新:
好吧,你们会为此而杀了我,但我疯狂的原因是我想将 BackTrack 中的所有软件包安装到我的 Ubuntu 安装中。我真的不喜欢将它放在虚拟机中并为它设置单独分区的想法更不可能。我知道 BackTrack 的人不喜欢人们窃取他们的存储库,但这就是您发布开源软件所得到的。愚蠢的?也许..一个正当的理由?可能不是..我还想要吗?是的。

另一个编辑:
我现在已经放弃了这个,因为即使通过手动安装包似乎也无法让它工作。

小智 6

这是一件非常可笑的事情。

编辑:正如其他答案/评论中所建议的那样,通过预先存在的工具(例如包管理器或 aptitude),有更简单的方法来完成此操作。无论如何,下面描述了这些信息的来源。他们的回答更有意义。

Ubuntu 的存储库位置可以在 /etc/apt/sources.list 中找到当您查看该文件时,您可能会看到如下内容:

deb http://us.archive.ubuntu.com/ubuntu/ lucid universe restricted multiverse main
Run Code Online (Sandbox Code Playgroud)

例如,如果您访问该 url,您可以在以下位置找到适用于 i386 的 lucid main 的二进制包:

http://us.archive.ubuntu.com/ubuntu/dists/lucid/main/binary-i386/
Run Code Online (Sandbox Code Playgroud)

如果您下载存档文件,其中有一个文件,其中包含一个包含包的文本文件。通过查看它很容易理解格式。例如,文件中的第一个条目:

Package: abrowser
Priority: optional
Section: web
Installed-Size: 132
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
Architecture: all
Source: firefox
Version: 3.6.3+nobinonly-0ubuntu4
Replaces: abrowser-3.5, abrowser-3.6
Provides: abrowser-3.5, abrowser-3.6
Depends: firefox, abrowser-branding
Conflicts: abrowser-3.5 (<< 3.6~hg20100117r33523), abrowser-3.6 (<< 3.6~hg20100117r33523+nobinonly)
Filename: pool/main/f/firefox/abrowser_3.6.3+nobinonly-0ubuntu4_all.deb
Size: 79050
MD5sum: 109aa3010e292e951750d90d6b636122
SHA1: 23ba3fbea8c0a06619184d43f775e3d2b3ae1374
SHA256: c4cdf6cffc9f43194a9a6e52b9aa1495678f3f3c3847ef491fd5823aa5fba4a4
Description: metapackage for the unbranded abrowser
 ABrowser is an unbranded version of the popular Firefox webbrowser;
 it is written in the XUL language and designed to be lightweight and
 cross-platform.
 .
 This is a metapackage that will point to the latest abrowser package in
 your distribution.
 Don't remove this if you want to receive automatic major version upgrades
 for this package in future.
Xul-Appid: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 3y
Run Code Online (Sandbox Code Playgroud)

因此,您可以编写一个脚本来解析文件中的每个包名称并将其添加到您的“sudo apt-get install”行中...

……但这似乎是一件疯狂的事情。我想并不是所有的包都会相互同意,你真的需要一切吗?对于您和其他人来说,这似乎是一种浪费时间和资源的练习。