如何使用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.pswp.cn/news/280412.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280412.shtml
英文地址,請注明出處:http://en.pswp.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…