IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Some necessary steps before you reinstall your ubuntu

2 posters

Go down

Some necessary steps before you reinstall your ubuntu Empty Some necessary steps before you reinstall your ubuntu

Post by BIT0111-muctadir Sun Aug 08, 2010 4:48 am

Linux gives us a full access to any part of it. So, it is possible to damage the system without knowing it. In case you have to re-install your ubuntu i recommend to follow these steps if you want to get back current state in new install.

  1. copy /etc/apt/sources.list to another location in your hard disc.
  2. run this command to list all currently installed applications
    Code:

    sudo dpkg --get-selections > /home/<user>/package.selections
    This will create a file package.selections in your home directory. Copy it somewhere else.
  3. Go to /var/cache/apt/archives. You will probably see many deb files there. Copy them all to another location. If no deb files are there skip this step and step 2 in next section.
  4. Now reinstall ubuntu.
To restore your system into previous state,

  1. Replace /etc/apt/sources.list with your previous one.
    Code:
    sudo gedit /etc/apt/sources.list
    Replace whole file with previous one.
  2. Copy all the deb files in /var/cache/apt/archives
    Code:
    sudo nautilus
    Now, copy and paste the files in mentioned location.
  3. Copy package.selections file in your home folder.
  4. Now, to reinstall all the previously installed applications
    Code:
    sudo apt-get update
    Code:
    sudo dpkg --set-selections /home/<user>/package.selections && apt-get dselect-upgrade
  5. Restart your computer and enjoy your previous ubuntu.
BIT0111-muctadir
BIT0111-muctadir
Expert
Expert

Course(s) :
  • BIT

Blood Group : B+
Posts : 233
Points : 395

Back to top Go down

Some necessary steps before you reinstall your ubuntu Empty Re: Some necessary steps before you reinstall your ubuntu

Post by BIT0122-Amit Sun Aug 08, 2010 5:36 am

Is there any way to get back the customized Application menu items? Neutral :S It is annoying to set them up over and over :S :S
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Some necessary steps before you reinstall your ubuntu Empty Re: Some necessary steps before you reinstall your ubuntu

Post by BIT0111-muctadir Sun Aug 08, 2010 7:21 am

You can copy(with all the file and folder starting with a .) your home folder to another location. Generally this contains preferences information for the corresponding user. Later you can replace with old ones.
BIT0111-muctadir
BIT0111-muctadir
Expert
Expert

Course(s) :
  • BIT

Blood Group : B+
Posts : 233
Points : 395

Back to top Go down

Some necessary steps before you reinstall your ubuntu Empty Re: Some necessary steps before you reinstall your ubuntu

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum