7

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

2
  • 1
    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, 2016 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, 2016 at 19:16

3 Answers 3

8

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!

4
  • 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, 2016 at 21:15
  • Hey try another imaging software such as link let me know if it works and ill update the post Apr 16, 2016 at 23:42
  • Win32DiskImager is what is recommended for Windows. See raspberrypi.org/documentation/installation/installing-images/…
    – Nuno
    Jul 11, 2017 at 18:14
  • @user45039 Rename the .img file to .iso. Worked great.
    – Everett
    Dec 11, 2017 at 22:32
1

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.

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

1
  • 1
    Yes, 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, 2020 at 14:19

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