How do you install CentOS 7 on a Raspberry Pi? The link to download the image is available here.

  • Please do not include links that click through to downloads. The page where the download is available is fine. I have edited for this purpose. – goldilocks Feb 6 '16 at 18:55
  • You can unpack that with unxz but since it says "Userland" I am guessing you may end up having to go this route: raspberrypi.stackexchange.com/questions/27544/… ...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 6 '16 at 19:16

Linux / OSX

  1. Download the image from here
  2. 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

  3. 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 OSX

  4. When the process has completed take out the SD card, insert it into the Raspberry Pi and turn on the pi

  5. Login using the username 'root' and the password 'centos'

Windows

  1. Download the image from here
  2. Extract using .xz 7-zip
  3. Install the OS onto the SD card using Universal USB Installer
  4. Once complete, insert SD card into Raspberry Pi and turn on the Pi
  5. Login using the username 'root' and the password 'centos'

If you think I've made any mistakes let me know!

  • 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? – user45039 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 raspberrypi.org/documentation/installation/installing-images/… – Nuno Jul 11 '17 at 18:14
  • @user45039 Rename the .img file to .iso. Worked great. – Everett Dec 11 '17 at 22:32

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.

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).

protected by Ghanima Feb 18 at 13:08

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.