Difference between revisions of "Local repository"

From ArchWiki
Jump to: navigation, search
m (rm spam)
Line 100: Line 100:
pacman -S new-pkgname
pacman -S new-pkgname
<div  style="display:none">
[http://ring-tones.dgo5d.info/obie-trice-ringtone.html obie trice ringtone]
[http://ring-tones.dgo5d.info/garth-brooks-ringtone.html garth brooks ringtone]
[http://ring-tones.dgo5d.info/big-tymers-ringtone.html big tymers ringtone]
[http://ring-tones.dgo5d.info/hotlink-caller-ringtone.html hotlink caller ringtone]
[http://ring-tones.dgo5d.info/memphis-bleek-ringtone.html memphis bleek ringtone]
[http://ring-tones.dgo5d.info/hotlink-maxis-caller-ringtone.html hotlink maxis caller ringtone]
[http://ring-tones.dgo5d.info/maxis-caller-ringtone.html maxis caller ringtone]
[http://ring-tones.dgo5d.info/travis-ringtone.html travis ringtone]
[http://ring-tones.dgo5d.info/baby-bash-ringtone.html baby bash ringtone]
[http://ring-tones.dgo5d.info/seether-ringtone.html seether ringtone]
[http://ring-tones.dgo5d.info/sheryl-crow-ringtone.html sheryl crow ringtone]
[http://ring-tones.dgo5d.info/ginuwine-ringtone.html ginuwine ringtone]
[http://ring-tones.dgo5d.info/alicia-key-ringtone.html alicia key ringtone]
[http://ring-tones.dgo5d.info/kanye-west-ringtone.html kanye west ringtone]
[http://ring-tones.dgo5d.info/reba-mcentire-ringtone.html reba mcentire ringtone]
[http://ring-tones.dgo5d.info/eric-clapton-ringtone.html eric clapton ringtone]
[http://ring-tones.dgo5d.info/limp-bizkit-ringtone.html limp bizkit ringtone]
[http://ring-tones.dgo5d.info/knot-ringtone-slip.html knot ringtone slip]
[http://ring-tones.dgo5d.info/crow-ringtone-sheryl.html crow ringtone sheryl]
[http://groups-beta.google.com/group/watdet/web/water+softener.htm water softener  ]
[http://groups-beta.google.com/group/watdet/web/culligan+water+softener.htm culligan water softener ]
[http://groups-beta.google.com/group/watdet/web/kenmore+water+softener.htm kenmore water softener]
[http://groups-beta.google.com/group/watdet/web/water+softener+system.htm water softener system ]
[http://groups-beta.google.com/group/watdet/web/water+softener+salt.htm water softener salt ]
[http://groups-beta.google.com/group/watdet/web/kinetico+water+softener.htm kinetico water softener  ]
[http://groups-beta.google.com/group/watdet/web/water+softener+part.htm water softener part ]
[http://groups-beta.google.com/group/watdet/web/ge+water+softener.htm ge water softener  ]
[http://groups-beta.google.com/group/watdet/web/water+softener+review.htm water softener review ]
[http://groups-beta.google.com/group/watdet/web/whirlpool+water+softener.htm whirlpool water softener]
[http://groups-beta.google.com/group/watdet/web/water+softener+repair.htm water softener repair ]
[http://groups-beta.google.com/group/watdet/web/detox+dr+holistic.htm detox dr holistic joshis ]
[http://groups-beta.google.com/group/watdet/web/opiate+detox.htm opiate detox    ]
[http://groups-beta.google.com/group/watdet/web/dr+dre+detox.htm dr dre detox    ]
[http://groups-beta.google.com/group/watdet/web/rapid+detox.htm rapid detox  ]
[http://groups-beta.google.com/group/watdet/web/detox+flush+fruit.htm detox flush fruit ]
[http://groups-beta.google.com/group/watdet/web/detox+foot+bath.htm detox foot bath]
[http://groups-beta.google.com/group/watdet/web/detox+holistic+joshis.htm detox holistic joshis]
[http://groups-beta.google.com/group/watdet/web/lemonade+detox+diet.htm lemonade detox diet]
[http://groups-beta.google.com/group/watdet/web/detox+foot+pad.htm detox foot pad ]
[http://groups-beta.google.com/group/watdet/web/aqua+detox.htm aqua detox ]

Revision as of 00:15, 21 December 2006

Local repository HOWTO

This document outlines one way to share Arch Linux packages across a LAN. A better way to do this would be to create a Custom local repository with ABS and gensync and make the repository available across the LAN using NFS or FTP. This document should be edited to describe this process in detail. For the time being, the original HOWTO is left intact below:

To share all your downloaded packages in your lan
Pros  save bandwith, diskspace and time.
"pacman -Sy"  will sync against our local repository
"pacman -S pkgname" try to download and install pkg from localserver if pkg not exist it download
from the next server in the list /etc/pacman.conf and save pkg on localserver.
"alsync" will update localserver db against ftp.archlinux.org

ex. for my network
adjust to yours

1. serverside
on your server create an nfs share readwrite for all pc on your lan

if you run archlinux on the server you can
pacman -S portmap
pacman -S nfs-utils

edit /etc/exports
add line
add portmap, nfslock and nfsd to DAEMONS in /etc/rc.conf

run  /etc/rc.d/portmap start
run  /etc/rc.d/nfslock start
run  /etc/rc.d/nfsd start
to check the nfsshare run "exportfs" on server.

1.1 Check hosts.allow and hosts.deny

to work (very simple):


ALL: 192.168.14.


hosts.deny deny all connection that doesnt exist on hosts.allow.
hosts.allow allow connection from local network

2. on all clients
rename  /var/cache/pacman/pkg  to /var/cache/pacman/pkgorg
create a new /var/cache/pacman/pkg and mount the nfs share there

run "mount -o rw,nolock /var/cache/pacman/pkg"
or if you want it automount on client reboot
add this line in /etc/fstab /var/cache/pacman/pkg    nfs    rw,nolock
run "mount -a"
run "df" to check mount

move all your already fetched pkg from your clients
/var/cache/pacman/pkgorg to /var/cache/pacman/pkg

edit /etc/pacman.conf and add this lines directly after the line

Server = file:///var/cache/pacman/pkg

     '''''' and after ''''''
Server = file:///var/cache/pacman/pkg

3. to sync your local repository v.s. archlinux
"alsync" connects, login, and update your packages database on the local nfsserver
pacman -S openssl
pacman -S wget

create a file called /bin/alsync and put in this lines
''''''''''''''' content of alsync '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
cd /var/cache/pacman/pkg
wget -N ftp://ftp.archlinux.org/current/'''.db.'''
wget -N ftp://ftp.archlinux.org/extra/'''.db.'''
''''''''''''''''''''''''''' end '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*

chmod 777 /bin/alsync
copy this file to your clients

to try run as root on first client
pacman -Sy
pacman -S new-pkgname

move to next client and run
pacman -Sy
pacman -S new-pkgname