Information Computer

Monday, January 2, 2012

Create Local Repository

Repository is gathered somewhere package-package (linux software) that were created especially for a linux distro. its function is to facilitate the repository linux users to get a variety of packages (software). usually it is an online repository. so to get the package (software) we need an internet connection.

such as the post title above, we I will discuss about creating a local repository. if your home does not have an internet connection. This repository is very suitable and helpful for you to store software that you can from outside the home.

how the local repository, first of all packages stored in a directory. later in the scan result package.gz file. directory path and then add a local repository in the sources.list file. after that you can install the package in the repository this way actually means.

The following steps create a local repository :
1. collection of all the package that you have in a directory. for example /home/husnu/repository
2. in the repository directory create 2 directorys with name pool and dists.
3. move all the package to directory pool
4. in the dists directory create a directory with the name of husnu
5. in the husnu directory create a directory with the name of the binary-1386
6. open terminal
7. cd /home/husnu/repository
8. sudo dpkg-scanpackages pool /dev/null | gzip -9c > dists/husnu/binary-i386/Packages.gz
9. sudo gedit /etc/apt/sources.list
10. in the last line add the following code
11. deb file:///home/husnu/repository husnu
12. save
13. sudo apt-get update
14. finish

if any question, please write comment in this post. thank :)


need to know! 
Many software publishers and other organizations maintain servers on the Internet for this purpose, either free of charge or for a subscription fee. Repositories may be solely for particular programs, such as CPAN for the Perl programming language, or for an entire operating system. Operators of such repositories typically provide a package management system, tools intended to search for, install and otherwise manipulate software packages from the repositories. For example, many Linux distributions use Advanced Packaging Tool (APT), commonly found in Debian based distributions or yum, found in Red Hat based distributions. There are also multiple independent package management systems, such as pacman, used in Arch Linux and equo, found in Sabayon Linux.

As software repositories are designed to include useful packages, major repositories are designed to be malware free. If a computer is configured to use a digitally signed repository from a reputable vendor, and is coupled with an appropriate permissions system, this significantly reduces the threat of malware to these systems. As a side effect, many systems that have these capabilities do not require anti-malware software such as anti-virus software.

Most major Linux distributions have many repositories around the world that mirror the main repository.

Related Posts



0 comments:

Followers