https://wiki.archlinux.org/api.php?action=feedcontributions&user=Slubman&feedformat=atomArchWiki - User contributions [en]2024-03-28T15:03:59ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=QEMU&diff=41171QEMU2008-05-12T11:44:10Z<p>Slubman: /* Using the Kernel-based Virtual Machine */ kvm modules are now provided with the arch kernel</p>
<hr />
<div>[[Category:Emulators (English)]]<br />
[[Category:HOWTOs (English)]]<br />
Qemu is a fast cpu emulator using dynamic translation to achieve good emulation speed. Unlike VMware and Win4Lin, it emulates the cpu instead of only virtualizing the computer. This means that it is considerably slower, but on the other hand it is much more portable, stable and secure. Plus it is open source. It is great solution if you want to run some simple Windows applications like MS Office on a fast PC and you want to ensure maximum compatibility. It is also a great tool for operating system development. This HOWTO describes how to set up the emulator and install Windows 9x/2000 under it.<br />
<br />
Qemu has the homepage at http://fabrice.bellard.free.fr/qemu/.<br />
<br />
<br />
<br />
=== Choosing Windows version===<br />
Qemu can run any version of Windows. However, 98, Me and XP will run at quite a low speed. You should choose either Windows 95 or Windows 2000. Surprisingly, 2000 seems to run faster than 98. The fastest one is 95, which can from time to time make you forget that you are running an emulator :)<br />
<br />
If you own both Win95 and win98/winme, then 98lite (from http://www.litepc.com) might be worth trying. It decouples Internet Explorer from operating system and replaces it with original Windows 95 Explorer. It also enables you to do a minimal Windows installation, without all the bloat you normally cannot disable. This might be the best option, because you get the smallest, fastest and most stable Windows this way.<br />
<br />
=== Installing QEMU ===<br />
<br />
QEMU is available as a package in the [extra] repository. To install it, add the extra repo to /etc/pacman.conf, and do<br />
<pre><br />
pacman -Sy qemu<br />
</pre><br />
You can also install the optional kernel accelerator module KQEMU, which can also be found in the [extra] repository.<br />
<pre><br />
pacman -Sy kqemu<br />
</pre><br />
<br />
=== Creating the hard disk image===<br />
To run qemu you will probably need a hard disk image. This is a file which stores the contents of the emulated hard disk.<br />
<br />
Use the command:<br />
<pre><br />
qemu-img create -f qcow2 win.qcow 4G<br />
</pre><br />
to create the image file named "win.qcow". The "4G" parameter specifies the size of the disk - in this case 4 GB. You can use suffix M for megabytes (for example "256M"). You shouldn't worry too much about the size of the disk - the qcow2 format compresses the image so that the empty space doesn't add up to the size of the file.<br />
<br />
=== Preparing the installation media===<br />
The installation CD-ROM/floppy shouldn't be mounted, because Qemu accesses the media directly. It is a good idea to dump CD-ROM and/or floppy to a file, because it both improves performance and doesn't require you to have direct access to the devices (that is, you can run Qemu as a regular user). For example, if the CD-ROM device node is named "/dev/cdrom", you can dump it to a file with the command:<br />
<pre><br />
dd if=/dev/cdrom of=win98icd.iso<br />
</pre><br />
<br />
=== Installing the operating system===<br />
<br />
This is the first time you will need to start the emulator.<br />
One thing to keep in mind: when you click inside qemu window, the mouse pointer is grabbed. To release it press Ctrl+Alt.<br />
<br />
If you need to use a bootable floppy, run Qemu with:<br />
<pre><br />
qemu -cdrom [[cdrom''image]] -fda [[floppy''image]] -boot a [[hd_image]]<br />
</pre><br />
or if you are on a x86_64 system (will avoid many problems afterwards):<br />
<pre><br />
qemu-system-x86_64 -cdrom [[cdrom''image]] -fda [[floppy''image]] -boot a [[hd_image]]<br />
</pre><br />
<br />
If your CD-ROM is bootable or you are using iso files, run Qemu with:<br />
<pre><br />
qemu -cdrom [[cdrom''image]] -boot d [[hd''image]]<br />
</pre><br />
or if you are on a x86_64 system (will avoid many problems afterwards):<br />
<pre><br />
qemu-system-x86_64 -cdrom [[cdrom''image]] -boot d [[hd''image]]<br />
</pre><br />
Now partition the virtual hard disk, format the partitions and install the OS.<br />
<br />
A few hints:<br />
# If you are using Windows 95 boot floppy, then choosing SAMSUNG as the type of CD-ROM seems to work<br />
# There are problems when installing Windows 2000. Windows setup will generate a lot of edb*.log files, one after the other containing nothing but blank spaces in C:\WINNT\SECURITY which quickly fill the virtual harddisk. A workaround is to open a Windows command prompt as early as possible during setup (by pressing Shift-F10) which will allow you to remove these log files as they appear by typing :<br />
<pre><br />
del %windir%\security\*.log<br />
</pre><br />
<br />
NOTE: According to the official QEMU website, "Windows 2000 has a bug which gives a disk full problem during its installation. When installing it, use the `-win2k-hack' QEMU option to enable a specific workaround. After Windows 2000 is installed, you no longer need this option (this option slows down the IDE transfers)."<br />
<br />
=== Running the system===<br />
<br />
To run the system simply type:<br />
<pre><br />
qemu [hd_image]<br />
</pre><br />
<br />
A good idea is to use overlay images. This way you can create hard disk image once and tell Qemu to store changes in external file.<br />
You get rid of all the instability, because it is so easy to revert to previous system state :)<br />
<br />
To create an overlay image, type:<br />
<pre><br />
qemu-img create -b [[base''image]] -f qcow [[overlay''image]]<br />
</pre>2<br />
Substitute the hard disk image for base_image (in our case win.qcow). After that you can run qemu with:<br />
<pre><br />
qemu [overlay_image]<br />
</pre><br />
or if you are on a x86_64 system:<br />
<pre><br />
qemu-system-x86_64 [overlay_image]<br />
</pre><br />
and the original image will be left untouched. One hitch, the base image cannot be renamed or moved, the overlay remembers the base's full path.<br />
<br />
=== Moving data between host and guest OS===<br />
<br />
If you have servers on your host OS they will be accessible with the ip-address 10.0.2.2 without any further configuration. So you could just FTP or SSH, etc to 10.0.2.2 from windows to share data, or if you would like to use samba:<br />
<br />
==== Samba====<br />
<br />
Qemu supports SAMBA which allows you to mount host directories during the emulation. It seems that there is an incompatibility with SAMBA 3.x. and some versions of qemu. But at least with a current snapshot of qemu it should be working.<br />
<br />
First, you need to have a working samba installation. Then add the following section to your smb.conf:<br />
<pre><br />
[qemu]<br />
comment = Temporary file space<br />
path = /tmp<br />
read only = no<br />
public = yes<br />
</pre><br />
<br />
Now start qemu with:<br />
<pre><br />
qemu [hd_image] -smb qemu<br />
</pre><br />
<br />
Then you should be able to access your host's smb-server with the ip-address 10.0.2.2. If you're running Win9x as guest OS, you may need to add<br />
<pre><br />
10.0.2.2 smbserver<br />
</pre><br />
to c:\windows\lmhosts (Win9x has Lmhosts.sam as a SAMple, rename it!).<br />
<br />
==== Mounting the hard disk image====<br />
<br />
Fortunately there is a way to mount the hard disk image with a loopback device. Login as root, make a temporary directory and mount the image with the command:<br />
<pre><br />
mount -o loop,offset=32256 [[hd''image]] [[tmp''dir]]<br />
</pre><br />
Now you can copy data in both directions. When you are done, umount with:<br />
<pre><br />
umount [hd_image]<br />
</pre><br />
The drawback of this solution is that you cannot use it with qcow images (including overlay images). So you need to create you images without \"-f qcow\" option. Tip: create a second, raw harddrive image. This way you'll be able to transfer data easily and use qcow overlay images for the primary drive.<br />
<br />
REMEMBER: never run qemu when the image is mounted!<br />
<br />
==== Using any real partition as the single primary partition of a hard disk image ====<br />
<br />
Sometimes, you may wish to use one of your system partition from within qemu (for instance, if you wish booting both your real machine or qemu using a given partition as root). You can do this using software RAID in linear mode (you need the linear.ko kernel driver) and a loopback device: the trick is to dynamically prepend a master boot record (MBR) to the real partition you wish to embed in a qemu raw disk image.<br />
<br />
Suppose you have a plain, unmounted /dev/hdaN partition with some filesystem on it you wish to make part of a qemu disk image. First, you create some small file to hold the MBR:<br />
<br />
dd if=/dev/zero of=/path/to/mbr count=32<br />
<br />
Here, a 16 KB (32 * 512 bytes) file is created. It is important not to make it too small (even if the MBR only needs a single 512 bytes block), since the smaller it will be, the smaller the chunk size of the software RAID device will have to be, which could have an impact on performance. Then, you setup a loopback device to the MBR file:<br />
<br />
losetup -f /path/to/mbr<br />
<br />
Let's assume the resulting device is /dev/loop0, because we woudn't already have been using other loopbacks. Next step is to create the "merged" MBR + /dev/hdaN disk image using software RAID:<br />
<br />
modprobe linear<br />
mdadm --build --verbose /dev/md0 --chunk=16 --level=linear --raid-devices=2 /dev/loop0 /dev/hdaN<br />
<br />
The resulting /dev/md0 is what you will use as a qemu raw disk image (don't forget to set the permissions so that the emulator can access it). The last (and somewhat tricky) step is to set the disk configuration (disk geometry and partitions table) so that the primary partition start point in the MBR matches the one of /dev/hdaN inside /dev/md0 (an offset of exactly 16 * 512 = 16384 bytes in this example). Do this using fdisk on the host machine, not in the emulator: the default raw disc detection routine from qemu often results in non kilobyte-roundable offsets (such as 31.5 KB, as in the previous section) that cannot be managed by the software RAID code. Hence, from the the host:<br />
<br />
fdisk /dev/md0<br />
<br />
Press 'x' to enter the expert menu. Set number of 's'ectors per track so that the size of one<br />
cylinder matches the size of your mbr file. For two heads and the sector size is 512, the number of<br />
sectors per track should be 16, so we get cylinders of size 2x16x512=16k. Now, press 'r' to return<br />
to the main menu. Press 'p' and check that now the cylinder size is 16k.<br />
Now, create a single primary partition corresponding to /dev/hdaN. It should start at cylinder 2 and end at the end of the disk (note that the number of cylinders now differs from what it was when you entered fdisk. Finally, 'w'rite the result to the file: you are done. You know have a partition you can mount directly from your host, as well as part of a qemu disk image: <br />
<br />
qemu -hdc /dev/md0 [...]<br />
<br />
You can of course safely set any bootloader on this disk image using qemu, provided the original /boot/hdaN partition contains the necessary tools.<br />
<br />
=== Optimizing Windows 9x CPU usage===<br />
<br />
Windows 9x doesn't use hlt instruction, so the emulator always eats up 100% CPU even if no computation is being done. Grab the file http://www.user.cityline.ru/~maxamn/amnhltm.zip, unpack it, copy it to the image and run the .bat file.<br />
<br />
=== Using the QEmu Accelerator Module===<br />
<br />
The developers of qemu have created an optional kernel module to accelerate qemu to sometimes near native levels. This should be loaded with the option<br />
major=0<br />
to automate the creation of the required /dev/kqemu device. The following command<br />
echo "options kqemu major=0" >> /etc/modprobe.conf<br />
will amend modprobe.conf to ensure that the module option is added every time the module is loaded.<br />
<br />
Append kqemu to the list of modules in /etc/rc.conf to have it loaded the next time the your system starts. To load it now without rebooting, do the following as root<br />
modprobe kqemu<br />
<br />
If you are using Linux, Windows 2000 or Windows XP as guest OS, start qemu with the command line option<br />
qemu [...] -kernel-kqemu<br />
or, if you are on a x86_64 system (will not work otherwise):<br />
qemu-system-x86_64 [...] -kernel-kqemu<br />
This enables full virtualization and thus improves speed considerably.<br />
<br />
=== Using the Kernel-based Virtual Machine ===<br />
<br />
KVM is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. Using KVM, one can run multiple virtual machines running unmodified Linux or Windows images. Each virtual machine has private virtualized hardware: a network card, disk, graphics adapter, etc.<br />
<br />
This technology requires an x86 machine running a recent Linux kernel on an Intel processor with VT (virtualization technology) extensions, or an AMD processor with SVM extensions KVM. It is included in the mainline linux kernel since 2.6.20.<br />
<br />
Qemu package now provides a qemu-kvm executable that take advantage of this technology and the arch kernel now provide the required modules.<br />
<br />
To take advantage of kvm, you simply need a compatible processor (the following command must return something on screen)<br />
<br />
egrep '^flags.*(vmx|svm)' /proc/cpuinfo<br />
<br />
And load the appropriate module from your rc.conf<br />
<br />
* For Intel® processors add this module to your MODULES array in /etc/rc.conf<br />
<br />
kvm-intel<br />
<br />
* for AMD® processors add this module to your MODULES array in /etc/rc.conf<br />
<br />
kvm-amd<br />
<br />
Also, you will need to yourself to the group 'kvm'.<br />
<br />
===Basic Networking===<br />
To add basic networking to your virtual machine, you may have to simply load qemu with those options: -net nic,vlan=1 -net user,vlan=1 . For example, to load a cdrom, you could use:<br />
qemu -kernel-kqemu -no-acpi -net nic,vlan=1 -net user,vlan=1 -cdrom dsl-4.3rc1.iso<br />
<br />
=== Tap Networking with QEMU ===<br />
<br />
==== Basic Idea ====<br />
<br />
Tap networking in QEMU lets virtual machines register themselves as though with separate ethernet adapters and have their traffic bridged directly onto your local area network. This is sometimes very desireable, if you want your virtual machines to be able to talk to each other, or for other machines on your LAN to talk to virtual machines.<br />
<br />
==== Security Warning ====<br />
<br />
You probably <b>should not</b> use this networking method if your host Arch machine is directly on the Internet. It can expose your virtual machines directly to attack!<br />
<br />
In general, Arch disclaims any responsibility for security implications (or implications of any kind, really) from following these instructions.<br />
<br />
==== Nitty Gritty ====<br />
<br />
To set all this up, you'll need to install the following packages:<br />
bridge-utils (for brctl, to manipulate bridges)<br />
uml_utilities (for tunctl, to manipulate taps)<br />
sudo (for manipulating bridges and tunnels as root)<br />
<br />
Then you need to take the following steps:<br />
<br />
1. Replace your normal ethernet adapter with a bridge adapter and bind your normal ethernet adapter to it. First install the bridging module:<br />
<br />
# modprobe bridge<br />
<br />
2. Configure your bridge <code>br0</code> to have your real ethernet adapter (herein assumed <code>eth0</code>) in it, in <code>/etc/conf.d/bridges</code>:<br />
bridge_br0="eth0"<br />
BRIDGE_INTERFACES=(br0)<br />
<br />
3. Change your networking configuration so that you just bring up your real ethernet adapter without configuring it, allowing real configuration to happen on the bridge interface. In <code>/etc/rc.conf</code>:<br />
<br />
eth0="eth0 up"<br />
br0="dhcp"<br />
INTERFACES=(eth0 br0)<br />
<br />
Remember, especially if you're doing DHCP, it's essential that the bridge comes up AFTER the real adapter, otherwise the bridge won't be able to talk to anything to get a DHCP address!<br />
<br />
4. QEMU is going to create "tap" adapters (virtualized network adapters), add them to the bridge as virtual machines are brought up, and remove them when done. First you need to make sure your kvm users have access to the tunnel device. Add to your <code>/etc/udev/rules.d/65-kvm.rules</code> file:<br />
<br />
KERNEL=="tun", NAME="net/%k", GROUP="kvm", MODE="0660"<br />
<br />
Then do the following so udev will pick up the new rule:<br />
<br />
# killall -HUP udevd<br />
<br />
4. Install the tunnel/tap module:<br />
<br />
# modprobe tun<br />
<br />
5. Install the script that QEMU uses to bring up the tap adapter in <code>/etc/qemu-ifup</code> with root:kvm 750 permissions:<br />
<br />
#!/bin/sh<br />
<br />
echo "Executing /etc/qemu-ifup"<br />
echo "Bringing up $1 for bridged mode..."<br />
sudo /sbin/ifconfig $1 0.0.0.0 promisc up<br />
echo "Adding $1 to br0..."<br />
sudo /usr/sbin/brctl addif br0 $1<br />
sleep 2<br />
<br />
6. Use <code>visudo</code> to add the following to your <code>sudoers</code> file:<br />
<br />
Cmnd_Alias QEMU=/sbin/ifconfig,/sbin/modprobe,/usr/sbin/brctl,/usr/bin/tunctl<br />
%kvm ALL=NOPASSWD: QEMU<br />
<br />
7. Make sure the user(s) wishing to use this new functionality are in the kvm group. Exit and log in again if necessary.<br />
<br />
8. You launch qemu using the following <code>run-qemu</code> script:<br />
<br />
USERID=`whoami`<br />
IFACE=`sudo tunctl -b -u $USERID`<br />
<br />
qemu-kvm -net nic -net tap,ifname="$IFACE" $*<br />
<br />
sudo tunctl -d $IFACE &> /dev/null<br />
<br />
9. Add <code>bridge</code> and <code>tun</code> to your <code>MODULES</code> line in <code>/etc/rc.conf</code>.<br />
<br />
=== Front-ends for Qemu ===<br />
<br />
There are a few GUI Front-ends for Qemu:<br />
<br />
* community/qemu-launcher<br />
* community/qemulator<br />
* unsupported/qtemu<br />
<br />
=== External links ===<br />
* [http://kidsquid.com/cgi-bin/moin.cgi/QEMUMenu QEMUMenu for Windows].<br />
* [http://mychael.gotdns.com/blog/2006/12/14/qemu-setup/ Network bridging setup for QEMU]</div>Slubmanhttps://wiki.archlinux.org/index.php?title=Uvesafb&diff=38448Uvesafb2008-03-10T10:03:10Z<p>Slubman: /* Remove the kernel boot parameters */ fix a typo</p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
A new framebuffer driver has been added to kernel 2.6.24. It has many more features than the standard vesafb, including:<br />
1) proper blanking and hardware suspension after delay;<br />
2) support for custom resolutions as in the system BIOS.<br />
It should support as much hardware as vesafb.<br />
<br />
=The virtualizing daemon=<br />
In contrast with other framebuffer drivers, uvesafb needs a userspace virtualizing daemon, called v86d. It may seem foolish to emulate x86 code on a x86, but this is important if one wants to use the framebuffer code on other architectures (notably non-x86 ones). There is a package in the testing repo for v86d, which includes an initcpio HOOK (called v86d), which load the uvesafb module and runs the virtualizing daemon when needed.<br />
<br />
You need to add the v86d in the HOOKS array in /etc/mkinitcpio.conf. It should be somewhere after base and before keymap (in the case you use the keymap hook). Then you need to regenerate your initramfs with mkinitcpio (adjust the wollowing command to your setup):<br />
<br />
mkinitcpio -g /boot/kernel26.img<br />
<br />
PLEASE NOTE that v86d requires that klibc has been compiled against a kernel tree including uvesafb. So you need to update klibc to the version in the testing repo. PLEASE NOTE ALSO that you have to upgrade to the testing repo also all the other stuff compiled against klibc, otherwise you will experience serious system breakage. So UPGRADE klibc, klibc-extras, klibc-udev, klibc-modprobe-init-tools to the versions in the testing repo!<br />
<br />
=Remove the kernel boot parameters=<br />
Remember to remove any framebuffer-related kernel boot parameter from the bootloader configuration: the vga=<foo> would force the old vesafb to load; the video=<foo> parameter would not be used when uvesafb is compiled ad a module (as in the archlinux stock kernel).<br />
<br />
=The options for uvesafb=<br />
The options for uvesafb can be defined in /etc/modprobe.d/uvesafb (this file is part of the above mentioned v86d package) or in the general /etc/modprobe.conf. The default file in the v86d package makes the syntax explicit and tells you where to look for further infos:<br />
<br />
# This file sets the parameters for uvesafb module.<br />
# The following format should be used:<br />
# options uvesafb mode=<xres>x<yres>[-<bpp>][@<refresh>] scroll=<ywrap|ypan|redraw> ...<br />
#<br />
# For more details see:<br />
# http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/fb/uvesafb.txt<br />
#<br />
options uvesafb mode=1280x800-32 scroll=ywrap<br />
<br />
=Uvesafb compiled into the kernel=<br />
If you compile your own kernel, then you can also compile uvesafb into the kernel and run v86d later, e.g. from /etc/rc.local. In this case, the options can be passed as kernel boot parameters in the format video=uvesafb:<options>. Please note that this solution is not viable in the case you want to combine uvesafb with 915resolution as suggested below.<br />
<br />
=The homepage of uvesafb=<br />
The home page of uvesafb is http://dev.gentoo.org/~spock/projects/uvesafb where you can find some detailed informations (you can ignore any information concerning patches for the kernel, because uvesafb is now in the vanilla kernel; moreover some informations in the site assume that uvesafb is compiled in the kernel, while it is a module in the archlinux stock binary kernel).<br />
<br />
=Uvesafb and 915resolution=<br />
In the following, we address a more complex scenario. Many intel video chipsets for widescreen laptops are known to have a buggish bios, which does not support the main, native resolution of the wide screen! For this reason, 915resolution was created to patch the bios at boot time and allowed the x server to use the widescreen resolution. Nowadays, the xserver is able to do this without the help of 915resolution. However, 915resolution can be combined with uvesafb in order to obtain a widescreen framebuffer, without any need to launch X at all. In this case, we need to load uvesafb after having run 915resolution, so that uvesafb can resort to the proper resolution.<br />
<br />
==915resolution-static==<br />
In this scenario, 915resolution needs to be compiled statically (since it is going to be in an initramfs, it can not be linked to external libraries). Thus you CAN NOT use the 915resolution package in the community repo. Look instead for 915resolution-static in AUR unsupported. It compiles 915 resolution statically and provides a 915 resolution hook, so you can run 915resolution before loading uvesafb and get the patched resolution. So install 915resolution-static via makepkg and pacman.<br />
<br />
==The resolution==<br />
You need to edit the 915resolution hook in order to define the BIOS mode you want to replace and and the resolution you want to get. You can get infos about all the options for 915resolution with:<br />
<br />
915resolution -h<br />
<br />
So edit /lib/initcpio/hooks/915resolution and modify the options for 915resolution:<br />
<br />
run_hook ()<br />
{<br />
msg -n ":: Patching the VBIOS..."<br />
/usr/sbin/915resolution 5c 1280 800<br />
msg "done."<br />
}<br />
<br />
In the default, 5c is the code of the BIOS mode to replace. You can get a list of the available BIOS video modes with '915resolution -l': NOTE that you want to choose the code of a mode that you DO NOT need (neither in the framebuffer nor in X), because 915resolution will replace it with a new user-defined mode. '1280 800' is the new desired resolution.<br />
<br />
==V86d==<br />
Install v86d via pacman. (NOTE: At the time of this writing (March 2nd, 2008), as noted also above, you need the klibc, klibc-extras, klibc-udev, klibc-modprobe-init-tools and v86d from the testing repository. You can safely install only those 5 packages from testing and not the rest, but don't forget any. These packages will be in extra soon)<br />
<br />
==Modify /etc/modprobe.d/uvesafb==<br />
Modify the options for uvesafb in /etc/modprobe.d/uvesafb, so that it uses the resolution you need, e.g.:<br />
<br />
options uvesafb mode=1280x800-32 scroll=ywrap<br />
<br />
==List the hooks==<br />
Add the 915resolution hook and, after it, the v86d hook to HOOKS in mkinitcpio.conf. Put them before the hooks for the keymap, the resume from suspension and the filesystems.<br />
HOOKS="base udev v86d ..."<br />
or if you need 915resolution<br />
HOOKS="base udev 915resolution v86d ..."<br />
<br />
==Finalize==<br />
Regenerate your initcpio (for example mkinitcpio -p kernel26), reboot and enjoy your widescreen framebuffer.</div>Slubmanhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=22425Mirrors2007-03-30T13:06:24Z<p>Slubman: mir2 is also an rsync server now</p>
<hr />
<div>[[Category:Package management (English)]]<br />
[[Category:HOWTOs (English)]]<br />
== Enabling your favorite mirror ==<br />
<br />
The default pacman configuration for ''current'' looks like this:<br />
<br />
[current]<br />
Include = /etc/pacman.d/current<br />
<br />
If you want to use the HostEurope mirror as your default mirror, just add it before the <tt>Include</tt> line:<br />
<br />
[current]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/current/os/i686</nowiki><br />
Include = /etc/pacman.d/current<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', ''community'' and ''unstable''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''current'' and another (older) kernel module from ''extra'').'''<br />
<br />
== Mirror List ==<br />
<br />
This is a list of all known ArchLinux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know a not listed mirror, please add it. Mirrors which are not updated or unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load [http://www.archlinux.org/ ArchLinux.org] in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
=== Global ===<br />
*http://prdownloads.sourceforge.net/archlinux/ (ISO only, no 0.7.2 yet)<br />
<br />
=== Australia ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/pub1/linux/archlinux/ http]</sub><br />
<br />
=== Austria ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== Belgium ===<br />
*ftp://ftp.belnet.be/packages/archlinux/ <sub>[http://ftp.belnet.be/packages/archlinux/ http]</sub><br />
<br />
=== Bulgaria ===<br />
*ftp://ftp.logos-bg.net/archlinux/ <sub>[http://ftp.logos-bg.net/archlinux/ http]</sub> (without ISO, ''community'', ''testing'', ''unstable'')<br />
<br />
=== China ===<br />
*http://mirror.vmmatrix.net/ArchLinux/<br />
*http://dxmirror.vmmatrix.net/ArchLinux/<br />
*http://cncmirror.vmmatrix.net/ArchLinux/<br />
<br />
=== Czech Republic ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== Estonia ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== Finland ===<br />
*ftp://ftp.sixnix.net/pub/archlinux/<br />
<br />
=== France ===<br />
* ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
* ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
* ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir2.archlinuxfr.org/archlinux rsync]</sub><br />
* http://mirrors.jakimowicz.com/archlinux<br />
<br />
=== Germany ===<br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ http]</sub><br />
<br />
=== Great Britain ===<br />
*http://ftp.parrswood.manchester.sch.uk/Mirrors/ftp.archlinux.org/<br />
<br />
=== Greece ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== Ireland ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== Italy ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== Malaysia ===<br />
*http://mymirror.asiaosc.org/archlinux-distro/ (without ISO, ''community'', ''testing'', ''unstable'')<br />
<br />
=== Netherlands ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub><br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub><br />
<br />
=== Norway ===<br />
*ftp://mirror.groovemovement.net/archlinux <br />
*ftp://jane.tihlde.org/pub/archlinux <sub>[http://jane.tihlde.org/pub/archlinux/ http]</sub><br />
<br />
=== Poland ===<br />
*ftp://sunsite.icm.edu.pl/site/linux-sunsite/distributions/archlinux/ (no ''testing'')<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
<br />
=== Portugal ===<br />
*ftp://gul.est.ips.pt/repos/archlinux/ <sub>[http://gul.est.ips.pt/ftp/repos/archlinux/ http]</sub><br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
*ftp://darkstar.ist.utl.pt/pub/archlinux/ <sub>[http://darkstar.ist.utl.pt/archlinux/ http]</sub><br />
<br />
=== Romania ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== Russia ===<br />
*http://archlinux.freeside.ru/ (''current'',''community'', ''extra'' only)<br />
<br />
=== Sweden ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/ http]</sub><br />
<br />
=== Switzerland ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== Taiwan ===<br />
*ftp://cle.linux.org.tw/pub/ArchLinux/ (no ''community'', ''testing'', ''unstable'')<br />
<br />
=== Turkey ===<br />
*ftp://ftp.linux.org.tr/pub/archlinux/<br />
<br />
=== United States ===<br />
*ftp://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ <sub>[http://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ http]</sub><br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub><br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub></div>Slubmanhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=18845Mirrors2006-12-05T09:56:14Z<p>Slubman: /* France */</p>
<hr />
<div>== Enabling your favorite mirror ==<br />
<br />
The default pacman configuration for ''current'' looks like this:<br />
<br />
[current]<br />
Include = /etc/pacman.d/current<br />
<br />
If you want to use the HostEurope mirror as your default mirror, just add it before the <tt>Include</tt> line:<br />
<br />
[current]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/current/os/i686</nowiki><br />
Include = /etc/pacman.d/current<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', ''community'' and ''unstable''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''current'' and another (older) kernel module from ''extra'').'''<br />
<br />
== Mirror List ==<br />
<br />
This is a list of all known ArchLinux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know a not listed mirror, please add it. Mirrors which are not updated or unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load [http://www.archlinux.org/ ArchLinux.org] in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
=== Global ===<br />
*http://prdownloads.sourceforge.net/archlinux/ (ISO only, no 0.7.2 yet)<br />
<br />
=== Australia ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/pub1/linux/archlinux/ http]</sub><br />
<br />
=== Austria ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== Belgium ===<br />
*ftp://ftp.belnet.be/packages/archlinux/ <sub>[http://ftp.belnet.be/packages/archlinux/ http]</sub><br />
<br />
=== Bulgaria ===<br />
*http://ftp.logos-bg.net/archlinux/ (without ISO and ''community'')<br />
<br />
=== China ===<br />
*http://mirror.vmmatrix.net/ArchLinux/<br />
*http://dxmirror.vmmatrix.net/ArchLinux/<br />
*http://cncmirror.vmmatrix.net/ArchLinux/<br />
<br />
=== Czech Republic ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== Estonia ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== France ===<br />
* ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
* ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
* ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub><br />
* http://mirrors.jakimowicz.com/archlinux<br />
<br />
=== Germany ===<br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ http]</sub><br />
<br />
=== Great Britain ===<br />
*http://ftp.parrswood.manchester.sch.uk/Mirrors/ftp.archlinux.org/<br />
<br />
=== Greece ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== Ireland ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== Italy ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== Lithuania ===<br />
*ftp://saule.mintis.lt/pub/linux/ <sub>[http://saule.mintis.lt/pub/linux/ http]</sub> (without ISO and ''community'')<br />
<br />
=== Malaysia ===<br />
*http://mymirror.asiaosc.org/archlinux-distro/ (without ISO, ''community'', ''testing'', ''unstable'')<br />
<br />
=== Netherlands ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub> (1 week out of date)<br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub> (same)<br />
=== Norway ===<br />
*ftp://mirror.djzradio.net/archlinux/ <sub>[http://mirror.djzradio.net/archlinux/ http]</sub> (no ISOs)<br />
<br />
=== Poland ===<br />
*ftp://sunsite.icm.edu.pl/site/linux-sunsite/distributions/archlinux/ (no ''testing'', one week late)<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
<br />
=== Portugal ===<br />
*ftp://gul.est.ips.pt/repos/archlinux/ <sub>[http://gul.est.ips.pt/ftp/repos/archlinux/ http]</sub><br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
*ftp://darkstar.ist.utl.pt/pub/archlinux/ <sub>[http://darkstar.ist.utl.pt/archlinux/ http]</sub><br />
<br />
=== Romania ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== Sweden ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/archlinux/ http]</sub><br />
<br />
=== Switzerland ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== Taiwan ===<br />
*ftp://cle.linux.org.tw/pub/ArchLinux/ (no ''community'', ''testing'', ''unstable'')<br />
<br />
=== United States ===<br />
*ftp://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ <sub>[http://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ http]</sub><br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub><br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub></div>Slubmanhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=18843Mirrors2006-12-05T09:55:38Z<p>Slubman: /* France */</p>
<hr />
<div>== Enabling your favorite mirror ==<br />
<br />
The default pacman configuration for ''current'' looks like this:<br />
<br />
[current]<br />
Include = /etc/pacman.d/current<br />
<br />
If you want to use the HostEurope mirror as your default mirror, just add it before the <tt>Include</tt> line:<br />
<br />
[current]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/current/os/i686</nowiki><br />
Include = /etc/pacman.d/current<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', ''community'' and ''unstable''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''current'' and another (older) kernel module from ''extra'').'''<br />
<br />
== Mirror List ==<br />
<br />
This is a list of all known ArchLinux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know a not listed mirror, please add it. Mirrors which are not updated or unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load [http://www.archlinux.org/ ArchLinux.org] in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
=== Global ===<br />
*http://prdownloads.sourceforge.net/archlinux/ (ISO only, no 0.7.2 yet)<br />
<br />
=== Australia ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/pub1/linux/archlinux/ http]</sub><br />
<br />
=== Austria ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== Belgium ===<br />
*ftp://ftp.belnet.be/packages/archlinux/ <sub>[http://ftp.belnet.be/packages/archlinux/ http]</sub><br />
<br />
=== Bulgaria ===<br />
*http://ftp.logos-bg.net/archlinux/ (without ISO and ''community'')<br />
<br />
=== China ===<br />
*http://mirror.vmmatrix.net/ArchLinux/<br />
*http://dxmirror.vmmatrix.net/ArchLinux/<br />
*http://cncmirror.vmmatrix.net/ArchLinux/<br />
<br />
=== Czech Republic ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== Estonia ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== France ===<br />
* ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
* ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub><sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
* ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
* ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub><br />
<br />
=== Germany ===<br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ http]</sub><br />
<br />
=== Great Britain ===<br />
*http://ftp.parrswood.manchester.sch.uk/Mirrors/ftp.archlinux.org/<br />
<br />
=== Greece ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== Ireland ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== Italy ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== Lithuania ===<br />
*ftp://saule.mintis.lt/pub/linux/ <sub>[http://saule.mintis.lt/pub/linux/ http]</sub> (without ISO and ''community'')<br />
<br />
=== Malaysia ===<br />
*http://mymirror.asiaosc.org/archlinux-distro/ (without ISO, ''community'', ''testing'', ''unstable'')<br />
<br />
=== Netherlands ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub> (1 week out of date)<br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub> (same)<br />
=== Norway ===<br />
*ftp://mirror.djzradio.net/archlinux/ <sub>[http://mirror.djzradio.net/archlinux/ http]</sub> (no ISOs)<br />
<br />
=== Poland ===<br />
*ftp://sunsite.icm.edu.pl/site/linux-sunsite/distributions/archlinux/ (no ''testing'', one week late)<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
<br />
=== Portugal ===<br />
*ftp://gul.est.ips.pt/repos/archlinux/ <sub>[http://gul.est.ips.pt/ftp/repos/archlinux/ http]</sub><br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
*ftp://darkstar.ist.utl.pt/pub/archlinux/ <sub>[http://darkstar.ist.utl.pt/archlinux/ http]</sub><br />
<br />
=== Romania ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== Sweden ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/archlinux/ http]</sub><br />
<br />
=== Switzerland ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== Taiwan ===<br />
*ftp://cle.linux.org.tw/pub/ArchLinux/ (no ''community'', ''testing'', ''unstable'')<br />
<br />
=== United States ===<br />
*ftp://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ <sub>[http://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ http]</sub><br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub><br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub></div>Slubmanhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=18841Mirrors2006-12-05T09:53:01Z<p>Slubman: /* France */</p>
<hr />
<div>== Enabling your favorite mirror ==<br />
<br />
The default pacman configuration for ''current'' looks like this:<br />
<br />
[current]<br />
Include = /etc/pacman.d/current<br />
<br />
If you want to use the HostEurope mirror as your default mirror, just add it before the <tt>Include</tt> line:<br />
<br />
[current]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/current/os/i686</nowiki><br />
Include = /etc/pacman.d/current<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', ''community'' and ''unstable''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''current'' and another (older) kernel module from ''extra'').'''<br />
<br />
== Mirror List ==<br />
<br />
This is a list of all known ArchLinux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know a not listed mirror, please add it. Mirrors which are not updated or unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load [http://www.archlinux.org/ ArchLinux.org] in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
=== Global ===<br />
*http://prdownloads.sourceforge.net/archlinux/ (ISO only, no 0.7.2 yet)<br />
<br />
=== Australia ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/pub1/linux/archlinux/ http]</sub><br />
<br />
=== Austria ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== Belgium ===<br />
*ftp://ftp.belnet.be/packages/archlinux/ <sub>[http://ftp.belnet.be/packages/archlinux/ http]</sub><br />
<br />
=== Bulgaria ===<br />
*http://ftp.logos-bg.net/archlinux/ (without ISO and ''community'')<br />
<br />
=== China ===<br />
*http://mirror.vmmatrix.net/ArchLinux/<br />
*http://dxmirror.vmmatrix.net/ArchLinux/<br />
*http://cncmirror.vmmatrix.net/ArchLinux/<br />
<br />
=== Czech Republic ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== Estonia ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== France ===<br />
*ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
* ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
* ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub><br />
<br />
=== Germany ===<br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/sunsite.unc-mirror/distributions/archlinux/ http]</sub><br />
<br />
=== Great Britain ===<br />
*http://ftp.parrswood.manchester.sch.uk/Mirrors/ftp.archlinux.org/<br />
<br />
=== Greece ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== Ireland ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== Italy ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== Lithuania ===<br />
*ftp://saule.mintis.lt/pub/linux/ <sub>[http://saule.mintis.lt/pub/linux/ http]</sub> (without ISO and ''community'')<br />
<br />
=== Malaysia ===<br />
*http://mymirror.asiaosc.org/archlinux-distro/ (without ISO, ''community'', ''testing'', ''unstable'')<br />
<br />
=== Netherlands ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub> (1 week out of date)<br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub> (same)<br />
=== Norway ===<br />
*ftp://mirror.djzradio.net/archlinux/ <sub>[http://mirror.djzradio.net/archlinux/ http]</sub> (no ISOs)<br />
<br />
=== Poland ===<br />
*ftp://sunsite.icm.edu.pl/site/linux-sunsite/distributions/archlinux/ (no ''testing'', one week late)<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
<br />
=== Portugal ===<br />
*ftp://gul.est.ips.pt/repos/archlinux/ <sub>[http://gul.est.ips.pt/ftp/repos/archlinux/ http]</sub><br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
*ftp://darkstar.ist.utl.pt/pub/archlinux/ <sub>[http://darkstar.ist.utl.pt/archlinux/ http]</sub><br />
<br />
=== Romania ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== Sweden ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/archlinux/ http]</sub><br />
<br />
=== Switzerland ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== Taiwan ===<br />
*ftp://cle.linux.org.tw/pub/ArchLinux/ (no ''community'', ''testing'', ''unstable'')<br />
<br />
=== United States ===<br />
*ftp://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ <sub>[http://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/ http]</sub><br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub><br />
*ftp://arch.os-zen.net/mirror/ <sub>[http://arch.os-zen.net/mirror/ http]</sub><br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub></div>Slubman