Skip to content

Instantly share code, notes, and snippets.

@iamwrm
Last active February 6, 2017 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamwrm/83d3bf21998b0e454cdb4e36c225d2ed to your computer and use it in GitHub Desktop.
Save iamwrm/83d3bf21998b0e454cdb4e36c225d2ed to your computer and use it in GitHub Desktop.
Markdown hints

local image

![avatar](/user/desktop/doge.png)

web image

![avatar](http://baidu.com/pic/doge.png)

use base64 to store image with string

I've created a image-disk repo https://github.com/iamwrm/image_disk/

It's terrible that the raw link doesn't work on gist

dont know why

![](https://raw.githubusercgntent.com/iamwrm/image_disk/master/avator.jpg)

Description

The order to use a local repo yum

mount /dev/cdrom /media/CentOS/

local.repo

[mLocal]
name=My Local Yum
baseurl=file:///media/CentOS
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-KEY-CentOS-7
enabled=1
yum --disablerepo=\* --enablerepo=c7-media

work flow

mkdir /media/CentOS/

mount /dev/cdrom /media/CentOS/

yum --disablerepo=\* --enablerepo=c7-media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment