APTonCD is an easy way to back up your installed packages to a disc or ISO image. You can quickly restore the packages on another Ubuntu system without downloading anything.

APTonCD是将安装的软件包备份到光盘或ISO映像的简便方法。 您可以在不下载任何东西的情况下,在另一个Ubuntu系统上快速恢复软件包。

After using APTonCD, you can install the backed up packages with a single action, add the packages as a software source, or restore them to your APT cache.

使用APTonCD之后,您可以通过一次操作安装备份的软件包,将软件包添加为软件源,或将其还原到APT缓存中。

安装 (Installation)

APTonCD is available in Ubuntu’s default software repositories. Search for “APTonCD” in the Ubuntu Software Center and you’ll find it. It’s also available in Debian’s software repositories.

APTonCD在Ubuntu的默认软件存储库中可用。 在Ubuntu软件中心中搜索“ APTonCD”,您将找到它。 也可以在Debian的软件存储库中找到。

You can also run the following command from a terminal:

您也可以从终端运行以下命令:

sudo apt-get install aptoncd

须藤apt-get install aptoncd

After it’s installed, you can launch it from the Dash.

安装完成后,您可以从Dash启动它。

备份程序包 (Backing Up Packages)

The “Create” button allows you to create a disc with your downloaded, cached DEB packages on it. This copies the packages from your APT cache (located in the /var/cache/apt/archives/ directory) to the disc. If you’ve used a clean-up utility such as Computer Janitor, the cached packages may no longer be present on your system.

“创建”按钮使您可以创建包含下载的,已缓存的DEB软件包的光盘。 这会将软件包从APT缓存(位于/ var / cache / apt / archives /目录中)复制到光盘上。 如果您使用了诸如Computer Janitor之类的清理实用程序,则缓存的软件包可能不再存在于您的系统上。

APTonCD presents you with a list of your cached packages and automatically selects them all. You can deselect packages if you don’t want them on the disc. If you have additional DEB packages you want to add, click the Add button to add them to the list. You can also drag and drop DEB packages from a file manager onto the window.

APTonCD为您提供缓存软件包的列表,并自动选择它们。 如果您不希望光盘上显示软件包,则可以取消选择软件包。 如果还有其他要添加的DEB包,请单击“添加”按钮将它们添加到列表中。 您也可以将DEB包从文件管理器拖放到窗口上。

Once you’ve selected your packages, click the Burn button. Using the window that appears, you can select a CD or DVD image, specify a name and location for the ISO image file, and optionally create a meta-package. A meta-package is a single package that depends on all other packages on the disc – this allows you to easily install all the packages on the disc by telling APT to install a single package.

选择软件包后,单击刻录按钮。 使用出现的窗口,您可以选择CD或DVD映像,为ISO映像文件指定名称和位置,还可以选择创建元包。 元软件包是依赖于光盘上所有其他软件包的单个软件包–通过告诉APT安装单个软件包,您可以轻松地将所有软件包安装在光盘上。

Click the Apply button and APTonCD will create an ISO image at the location you specified.

单击“应用”按钮,APTonCD将在您指定的位置创建一个ISO映像。

Once the image is created, you can have APTonCD launch a disc-burning application, such as Brasero, to burn it to a disc immediately. You can also burn the ISO image later. If you don’t have a disc drive – no problem, you can save the ISO image as a file and transport it between computers on a USB drive.

创建映像后,您可以让APTonCD启动光盘刻录应用程序(例如Brasero)以立即将其刻录到光盘上。 您也可以稍后刻录ISO映像。 如果没有光盘驱动器-没问题,您可以将ISO映像另存为文件,并在USB驱动器上的计算机之间进行传输。

安装所有软件包 (Installing All Packages)

If you burnt the image to disc, you can insert it into your disc drive, open it in a file manager window, and double-click the package named “aptoncd-metapackage” to install it. This will install all packages on the disc. The package will not be present if you didn’t have APTonCD create a meta-package.

如果将映像刻录到光盘,则可以将其插入光盘驱动器,在文件管理器窗口中将其打开,然后双击名为“ aptoncd-metapackage”的软件包进行安装。 这将在光盘上安装所有软件包。 如果您没有APTonCD创建元软件包,则该软件包将不存在。

If you only have an ISO image, you can mount it as a disc and install packages from it.

如果只有ISO映像,则可以将其安装为光盘并从中安装软件包。

将光盘添加为存储库 (Adding a Disc as a Repository)

The File –> Add CD/DVD option in APTonCD adds the disc to APT as a software source. The disc will be used as a repository in APT, so you can install packages from it using Synaptic, apt-get, or other package management tools, even if you’re offline.

APTonCD中的“文件”->“添加CD / DVD”选项会将光盘作为软件源添加到APT。 该光盘将用作APT中的存储库,因此即使您处于离线状态,也可以使用Synaptic,apt-get或其他软件包管理工具从中安装软件包。

将软件包还原到缓存 (Restoring Packages to Cache)

The Load button on the restore screen won’t do anything until you install the hal package on your system. Do so with the following command:

在系统上安装hal软件包之前,还原屏幕上的“加载”按钮将不起作用。 使用以下命令执行此操作:

sudo apt-get install hal

须藤apt-get install hal

Restart APTonCD after running this command and you’ll be able to restore packages by clicking the Restore button. You can restore packages to any system, as long as the systems use the same architecture – for example, you can’t install 64-bit packages on a 32-bit installation of Ubuntu.

运行此命令后,重新启动APTonCD,您将可以通过单击“还原”按钮来还原软件包。 您可以将软件包还原到任何系统,只要这些系统使用相同的体系结构即可。例如,您不能在32位Ubuntu上安装64位软件包。

Use the Load button on the Restore screen to specify a disc drive or ISO image file.

使用“还原”屏幕上的“加载”按钮指定光盘驱动器或ISO映像文件。

After you have, you can click the Restore button to restore the downloaded packages to your APT cache. APT will use them to install the packages instead of downloading them.

完成后,可以单击“还原”按钮将下载的软件包还原到APT缓存中。 APT将使用它们来安装软件包,而不是下载它们。



APTonCD is particularly useful for systems without Internet connections, but it’s also a quick way to restore your favorite packages after reinstalling Ubuntu from scratch – without having to remember them.

APTonCD对没有Internet连接的系统特别有用,但是它也是从头开始重新安装Ubuntu之后无需记住它们即可恢复您喜欢的软件包的快速方法。

Have you used APTonCD in the past? Share your experiences in the comments.

您过去曾经使用过APTonCD吗? 在评论中分享您的经验。

翻译自: https://www.howtogeek.com/110034/how-to-back-up-restore-your-installed-ubuntu-packages-with-aptoncd/

如何使用APTonCD备份和还原已安装的Ubuntu软件包相关推荐

  1. 无法安装冰点还原_PC整机备份与还原教程 Active Backup for Business

    使用 Synology Active Backup Business 备份套件(以下简称 ABB ),就能享有备份一体机,集中备份 Winodws PC 和服务器整机.文件服务器.虚拟机.公有云的数据 ...

  2. foxmail 服务器备份 立刻删除_PC整机备份与还原教程 Active Backup for Business

    使用 Synology Active Backup Business 备份套件(以下简称 ABB ),就能享有备份一体机,集中备份 Winodws PC 和服务器整机.文件服务器.虚拟机.公有云的数据 ...

  3. Linux查看系统信息的一些命令及查看已安装软件包的命令(转)

    系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # ho ...

  4. Linux查看系统信息的一些命令及查看已安装软件包的命令

    系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # ho ...

  5. 【原创】Ubuntu22.04安装 PREEMPT-RT(Ubuntu Pro RealTime linux/realtime Ubuntu)

    文章目录 1. Ubuntu Pro简介 2. Real-time Ubuntu 3. 订阅Ubuntu Pro 4. 安装 realtime Linux kernel 5. Ubuntu Pro r ...

  6. ubuntu 恢复apt_apt-clone:备份已安装的软件包并在新的 Ubuntu 系统上恢复它们

    如果你需要在少量系统上安装相同的软件包时,apt-clone 会适合你. -- Magesh Maruthamuthu(作者) 当我们在基于 Ubuntu/Debian 的系统上使用 apt-clon ...

  7. apt-clone:备份已安装的软件包并在新的 Ubuntu 系统上恢复它们

    当我们在基于 Ubuntu/Debian 的系统上使用 apt-clone,包安装会变得更加容易.如果你需要在少量系统上安装相同的软件包时,apt-clone 会适合你. 如果你想在每个系统上手动构建 ...

  8. [windows phone7 ]手机端程序备份工具--wp7钛备份 查看已安装程序GUID

    本人原创,原发表在 http://www.wpxap.com/thread-370862-1-1.html,欢迎测试. 进度: 5月1日 16:00 已经搞定zip压缩,正在进行稳定性测试. 5月1日 ...

  9. android备份:apk安装过程及原理,备份已安装应用的apk包技术实现方案

    安卓设备上备份已安装应用的apk包技术实现方案 需求的目的 在只有安装应用, 没有该应用的apk,而我们又想活取应用apk,用来分享给别人,或是应用的备份, 说是应用的增量升级的, 怎么办? 本文将告 ...

最新文章

  1. SQL 查询语句总是先执行 SELECT?你们都错了
  2. gplv3协议可以商用吗_协议离婚以后,可以变更原离婚协议的内容吗?
  3. rest api是什么_一文搞懂什么是RESTful API
  4. Ubuntu系统下如何在不重启的情况下永久修改hostname主机名
  5. paper reading:高光谱遥感影像空谱特征提取与分类方法研究 - 康旭东
  6. 减号android string,在Android应用软键盘上减号加号登录
  7. 基于Qt秒表设计(Qt绘图秒表示例)
  8. 程序员的未来之路[转]
  9. html5中歌曲和歌词同步的方法
  10. 小哥凭“量子速读”绝技吸粉59万:看街景图0.1秒,“啪的一下”在世界地图精准找到!...
  11. 鹏哥C语言红皮书(14-19)
  12. Google开放星空观测应用SkyMap源代码
  13. 【论文笔记】:CornerNet: Detecting Objects as Paired Keypoints
  14. poj3525(二分+半平面判定)
  15. php168整站系统官网,PHP168整站系统官方下载
  16. 机器学习是安全?还是威胁?
  17. linux 宕机 内存,Linux内存使用高,触发系统宕机
  18. 桌面破坏王2.exe
  19. 互联网之父:语义Web技术已具备成功标准
  20. EDEM入门学习教程—界面介绍

热门文章

  1. linux开发板上程序如何调试,linux开发板调试典型方法
  2. 带wiringPi库的交叉编译
  3. 移动硬盘不可用_如何对您的网站执行移动可用性审核
  4. 云时代架构读后感4--IT架构的本质
  5. pom.xml里发布和下载包
  6. .Net+MySQL组合开发(二) 数据访问篇
  7. Boostrap ZURB Foundation —— Web开发前端框架
  8. 深入理解计算机系统读书笔记
  9. 在Orchard中使用Image Gallery模块
  10. 花开的声音 - 张靓颖