Friday, May 3, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1559  / 1 Year ago, wed, may 31, 2023, 12:41:29

Is there any way to backup installed software, install a fresh Ubuntu system, and restore the software on the newly installed system, without an Internet connection? I already cleared my apt cache.


More From » installation

 Answers
6

Backup




  1. Ctrl + Alt + T(Opens Terminal)


  2. Get root access (i) Type "sudo su" then press Enter (ii)Give Your Password


  3. Install Require Packages (i)apt-get install fakeroot(ii)apt-get install dpkg-repack


  4. cd to Your Backup directory For example ,Say U have a Thumbdrive and created a folder backup "cd /media/usb/backup"


  5. Run the Following in terminal



    fakeroot -u dpkg-repack dpkg --get-selections | grep install | cut -f1




.Restore



Steps to reinstall packages



1.Ctrl + Alt +T(Opens Terminal)



2.cd to the "backup" directory



Eg: "cd /media/usb/backup"



3.Run the Following in terminal



sudo dpkg -i *.deb



Source :Facebook doc



Edit



If it lead to broken dependencies open the terminal and type



sudo apt-get install -f 

[#38036] Thursday, June 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nstitutencert

Total Points: 171
Total Questions: 126
Total Answers: 124

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
;