Tips for upgrading Ubuntu

Posted on December 1, 2009. Filed under: Linux | Tags: , , |

Directly upgrading Ubuntu from the internet can take a lot of time and internet bandwidth, so many people prefer doing a fresh install by downloading the ISO or by ordering a CD. Having to again install all your favourite applications on your new system can be a nightmare. Here are some tips that will make your life easier.

1) Backup all files in /var/cache/apt

Whenever you install a new application, all packages are downloaded to this location. Simply copy all files and folders in this location to some other place, and copy them back again after installing the new version of Ubuntu. When you try to install the same applications again, the packages in this folder will be used by apt instead of re-downloading them. It will save a lot of time and internet bandwidth. Also useful for installing packages when you are not connected to the internet.

Note: If you are connected to the internet and newer versions are available, then the newer packages will be downloaded and installed.

Note: Instead of doing this manually you can use an application called AptOnCD which will automatically burn these packages on a CD/DVD for you. Type apt-get install aptoncd in a terminal window to install it.

2) Create an installation script

Creating an installation script is very easy. After installing a fresh copy of Ubuntu simply connect to the internet and run the script. All your favourite apps will be downloaded and installed automatically. For example, consider the following script:

sudo -i
apt-get install sun-java6-bin sun-java6-jre
apt-get install ubuntu-restricted-extras
apt-get install rar p7zip-full gnochm
apt-get install gparted cups-pdf sensors-applet aptoncd

Save it to a file named update.sh in your home folder and run it by typing the following in a command window:

sh update.sh

It will take some time and effort to identify the package names for all your favourite applications and to create the script. But once the script is created it will make your life a whole lot easier the next time you reinstall your OS.


Read Full Post | Make a Comment ( None so far )

Recently on teejee2008's Weblog...

Install GRUB2 Splash Image in Ubuntu

Posted on December 1, 2009. Filed under: Linux | Tags: , , , , |

Fix problems with Ubuntu 9.10 on Dell Studio 1555

Posted on December 1, 2009. Filed under: Linux | Tags: , , , , , , |

FFCoder v0.98 Beta

Posted on November 15, 2009. Filed under: FFCoder, My Freewares, Release |

FFCoder v0.97 Beta

Posted on November 9, 2009. Filed under: FFCoder, My Freewares, Release |

My New Blog

Posted on November 5, 2009. Filed under: Uncategorized |

7-ZIP SFX Maker Source Code

Posted on October 22, 2009. Filed under: 7-ZIP SFX Maker, My Freewares, Uncategorized |

How to install Picasa in Ubuntu

Posted on October 16, 2009. Filed under: Linux, Uncategorized | Tags: , , |

How to login as root in Ubuntu

Posted on October 15, 2009. Filed under: Linux | Tags: , , , , |

How to update MPlayer & MEncoder in Ubuntu

Posted on October 15, 2009. Filed under: Linux | Tags: , , |

FFCoder v0.96 BETA

Posted on September 28, 2009. Filed under: Uncategorized |

Liked it here?
Why not try sites on the blogroll...