How do you install CentOS 7 on a Raspberry Pi? The link to download the image is available here.
3 Answers
Linux / OSX
- Download the image from here
Extract the .xz file using any of the following methods
Tar
tar xf CentOS-Userland-7-armv7hl-Minimal-1511-RaspberryPi2.img.xz
Unxz
unxz CentOS-Userland-7-armv7hl-Minimal-1511-RaspberryPi2.img.xz
The Unarchiver (OSX)
Install from Mac App Store here
Use the disk cloning command dd to copy the img contents to your SD card
sudo dd if=‘/location/to/file.img’ of=‘dev/(sd card identifier)’
Notes:
- Can take over an hour depending on SD card speed
- You can find disk identifier using Disk Utility on OSXWhen the process has completed take out the SD card, insert it into the Raspberry Pi and turn on the pi
Login using the username 'root' and the password 'centos'
Windows
- Download the image from here
- Extract using .xz 7-zip
- Install the OS onto the SD card using Universal USB Installer
- Once complete, insert SD card into Raspberry Pi and turn on the Pi
- Login using the username 'root' and the password 'centos'
If you think I've made any mistakes let me know!

- 113
- 5

- 538
- 2
- 5
- 10
-
the steps for windows when using the USB Installer i am not able to choose the downloaded file as it is an .img file not .iso? – Apr 15 '16 at 21:15
-
Hey try another imaging software such as link let me know if it works and ill update the post – Enayet Hussain Apr 16 '16 at 23:42
-
Win32DiskImager is what is recommended for Windows. See https://www.raspberrypi.org/documentation/installation/installing-images/windows.md – Nuno Jul 11 '17 at 18:14
-
Regarding Windows install above. .img files are .iso files when decompressed. After unzipping either of the images above using 7zip just rename the file with a .iso extension and select the unlisted option from the Universal USB installer. The centOS options is for regular centOS image, not the one above.

- 11
- 1
After getting the appropriate image, follow the instructions found on https://www.raspberrypi.org/documentation/installation/installing-images/.
Currently Etcher is recommended as "the easiest option for most users" for an SD writing tool. It has a graphical user interface and supports multiple image types (*.img, *.iso, *.zip, etc).

- 131
- 4
-
1Yes, with Etcher on Windows all you have to do is point it to the image file as it was downloaded from Centos mirror (no need to extract it) and SD card. – ruslaniv Dec 30 '20 at 14:19
unxz
but since it says "Userland" I am guessing you may end up having to go this route: http://raspberrypi.stackexchange.com/questions/27544/can-i-use-fedora-on-the-pi-2 ...Depends what you actually find in the img. If it is just one partition, then you will have to add the boot partition too. – goldilocks Feb 06 '16 at 19:16