7

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

goldilocks
  • 60,325
  • 17
  • 117
  • 234
Enayet Hussain
  • 538
  • 2
  • 5
  • 10

3 Answers3

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!

Tim S.
  • 113
  • 5
Enayet Hussain
  • 538
  • 2
  • 5
  • 10
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.

Mark W.
  • 11
  • 1
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).

Brett Holman
  • 131
  • 4