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

image

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的软件存储库中找到。

image

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启动它。

image

备份程序包 (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之类的清理实用程序,则缓存的软件包可能不再存在于您的系统上。

image

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包从文件管理器拖放到窗口上。

image

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安装单个软件包,您可以轻松地将所有软件包安装在光盘上。

image

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

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

image

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驱动器上的计算机之间进行传输。

image

安装所有软件包 (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创建元软件包,则该软件包将不存在。

image

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或其他软件包管理工具从中安装软件包。

image

将软件包还原到缓存 (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

image

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位软件包。

image

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

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

image

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将使用它们来安装软件包,而不是下载它们。

image


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/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/280412.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

rest_framework10:base64补充/修改头像

base64补充 # base64 变长,可反解 # md5 固定长度,不可反解# base64 编码和解码 import base64 import json dic{name:test,age:18} dic_strjson.dumps(dic)retbase64.b64encode(dic_str.encode(utf-8)) print(ret)# 解码 ret2base64.b64decode(ret) pri…

next_permutation(全排列算法)

next_permutation(全排列算法) STL提供了两个用来计算排列组合关系的算法,分别是next_permutation和prev_permutation。 首先解释下全排列,顾名思义,即一组数的全部排列的情况。 next_permutation 即列出一组数的全部排列情况,不过…

C#自定义字符串压缩和解压缩源码库

如下的内容是关于C#自定义字符串压缩和解压缩库的内容。class ZipLib{public static string Zip(string value){byte[] byteArray new byte[value.Length];int indexBA 0;foreach (char item in value.ToCharArray()){byteArray[indexBA] (byte)item;}System.IO.MemoryStrea…

使用 Visual Studio 2022 调试Dapr 应用程序

使用Dapr 编写的是一个多进程的程序, 两个进程之间依赖于启动顺序来组成父子进程,使用Visual Studio 调试起来可能会比较困难,因为 Visual Studio 默认只会把你当前设置的启动项目的启动调试。好在有Visual Studio 扩展(Microsoft Child Proc…

卸载 cube ui_如何还原Windows 8附带的已卸载现代UI应用程序

卸载 cube uiWindows 8 ships with built-in apps available on the Modern UI screen (formerly the Metro or Start screen), such as Mail, Calendar, Photos, Music, Maps, and Weather. Installing additional Modern UI apps is easy using the Windows Store, and unins…

rest_framework11:jwt简单例子/自定制基于jwt认证类

jwt简单例子 一、登陆设置 1.不需要写login的视图类,使用jwt内置的。 2.需要前置条件,已有继承AbstractUser models,并且有数据,用于校验,返回token。 urls.py from rest_framework_jwt.views import obtain_jwt_tokenurlpat…

Java各种数据类型,自己学习写的笔记!!!

java编程规范: 1.良好的标识符的命名保留字不能作为标识符命名: class、public、static..., goto,const区分大小写:helloWorld、HelloWorld 2.良好的注释习惯 3.良好的缩进:没遇到一个代码块缩进一次(一个tab键&…

Java Decompiler(Java反编译工具)

Java Decompiler官网地址:http://jd.benow.ca/ 官网介绍: The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions. JD-Core is a library that reconstructs Java sou…

20位程序员关于求职的疑问,以及我给出的参考答案

作者:陆小凤首发:公众号【程序员江湖】阅读本文大概需要 6 分钟。前几天发了一条朋友圈对于求职小伙伴们提出的问题,我进行了收集整理,统一反馈。也许这20个问题也是你们遇到的问题,所以趁着年前赶紧把它发出来。以下2…

MassTransit | 基于MassTransit Courier 实现 Saga 编排式分布式事务

Saga 模式Saga 最初出现在1987年Hector Garcaa-Molrna & Kenneth Salem发表的一篇名为《Sagas》的论文里。其核心思想是将长事务拆分为多个短事务,借助Saga事务协调器的协调,来保证要么所有操作都成功完成,要么运行相应的补偿事务以撤消先…

ccleaner无法更新_CCleaner正在静默更新关闭自动更新的用户

ccleaner无法更新CCleaner is forcing updates on users who specifically opt out of automatic updates. Users will only find out about these unwanted updates when they check the version number. CCleaner强制对专门选择退出自动更新的用户进行更新。 用户只有在检查版…

查找域内所有的Windows Server 2012 R2的服务器,并区分出哪些是物理机,那些是虚拟机...

通过使用Get-Adcomputer和Get-Wmiobject 组合来实现。思路是这样的,先看一台服务器的属性值有什么可用利用的。[12r2-dc]: PS C:\> Get-ADComputer -Identity 12r2-dc -Properties *AccountExpirationDate :accountExpires …

rest_framework12:多登陆方式与自动签发token/配置过期时间

多登陆方式与自动签发token views.py 1.继承Viewset,方法里可以使用自定义login,更直观。需要路由直接配置请方式 2. 序列化是直接对request数据处理,并从对象中获取token 3.context可以储存自定义数据 # 多登陆方式,自动签发…

20165310_获奖感想与Java阶段性学习总结

获奖感想与Java阶段性学习总结 一、Learning By Doing ​ 在此之前,其实我并没有想到能够成为小黄杉的第一批成员之一,喜悦之余,也感受到了许多的压力。小黄杉一方面代表了老师对于我这一阶段学习成果的肯定,但同时也是对我的督促…

chrome浏览器崩溃_不只是您:Chrome浏览器在Windows 10的2018年4月更新中崩溃

chrome浏览器崩溃If your computer is hanging or freezing after installing the Windows 10 April 2018 Update you’re not alone, and Microsoft is aware of the problem. 如果在安装Windows 10 April 2018 Update之后计算机挂起或死机,您并不孤单,…

读名老中医之路笔记(二)

任应秋:我的治学门径和方法 任应秋先生从幼读经,十三经皆能成诵,属于带童子功的医学家,他的医学经验: 一、读经宜读全本,解经宜先识字,读经宜正音读,强调对经典著作的朗读和背诵&…

致敬青春岁月

昨天发生的一件神奇的事情。我们公司工会组织了一次小型的户外团建,有机会认识一些其他部门同事,没想到有一个同事小心地认出了我,然后还谈起了关于.NET技术和社区的一些发展的历史和故事。他在微软工作的时间比我久,但时空交错&a…

谈谈- declare-styleable属性

在Android开发中,往往要用到自定义的控件来实现我们的需求或效果。在使用自定义 控件时,难免要用到自定义属性,那怎么使用自定义属性呢? 一、简单使用: 1.在文件res/values/下新建attrs.xml属性文件,中定义…

docker:自定义ubuntu/制作镜像引用/ubuntu换源更新

一、需求 1. 制作一个图像辨识的api,用到相同设置的ubuntu镜像,但是每次制作都要更新ubuntu和下载tesseract浪费半个到一个小时下载,所以制作一个自定义ubuntu几次镜像大大提高开发效率。 2. 制作ubuntu过程时,可以调试tesserac…

jQuery 属性和CSS

HTML代码&#xff1a; <div id"div1">div1<p>1</p><p>2</p><p>3</p> </div> <div id"div2">div2</div> <div id"div3">div3</div>attr()设置节点的属性 $("#div1…