Then finally, I realized what a good thinking to provide a function like this in an Operating System.
I think, the most advantages are
save your time when you re-install your OS.
you can make an update all your clients in a LAN by pointing their’s repository to a server.
In Ubuntu, the repository file is located at:
You can modify it with gedit or vim, such as:
$sudo gedit /etc/apt/sources.list
Before you make any changes a configuration file in Linux, always make as a habit to back up the configuration. Just do as below:
$sudo mv sources.list sources.list.bak
or you can do like this:
$sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
Usually, I disable the repository source that I don’t need for the moment with character ‘#’. It’s very easy, just put the ‘#’ in front of ‘deb’. I suggest do not delete it because may be you need next time.
# Repository from Main Server
deb http://archive.ubuntu.com/ubuntu/ feisty main universe restricted multiverse
# Repository for Compiz Fussion
# deb http://download.tuxfamily.org/3v1deb feisty eyecandy
# deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy
# CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
# servers. RealPlayer10, Opera, DesktopSecure and more to come.)
# deb http://archive.canonical.com/ubuntu feisty-commercial main
# E17 repository “edevelop.org”
# deb http://edevelop.org/pkg-e/ubuntu edgy e17
# deb-src http://edevelop.org/pkg-e/ubuntu edgy e17
This is what I’m talking about. You can update your Ubuntu via local network. It mean, you
can do it also with 2 computers. Just point to folder and IP address of the repository source.
# Repository via local Network
# deb http://192.168.0.6/ubuntu7.04/ feisty main restricted universe multiverse
If your friend create a local repository in his laptop and you want to update via Ethernet cable,
you can do like this: