February 2020 Archives

Windows 10 built-in screen shot

user-pic
Vote 0 Votes

Windows 10 內建的截圖工具在右下角通知, 螢幕剪取
快速鍵 Win+Shift+S
這功能好用在於截完圖後就已經在剪貼簿了, 超方便, 也可以進行簡單的標記

RHEL Switch to CentOS repo

user-pic
Vote 0 Votes

因為 RHEL 的 $releasever 的變數和 CentOS 不同,無法直接使用 CentOS repo,需將 repo 檔中的變數寫死後使用

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-7 - Base
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/7/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-7 - Updates
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-7 - Extras
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-7 - Plus
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

以上是 7 版的 repo 檔,若是 8 版,把檔案裡面的 7 改成 8 即可
curl https://gist.githubusercontent.com/pankpan/1649b48550949ed022086172b990a2d7/raw/1afd6968c702346009f48ba1047a1af2a14be4ba/CentOS-Base.repo > /etc/yum.repos.d/CentOS-Base.repo
curl http://mirror01.idc.hinet.net/CentOS/RPM-GPG-KEY-CentOS-7 > /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum -y update

About this Archive

This page is an archive of entries from February 2020 listed from newest to oldest.

January 2020 is the previous archive.

March 2020 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives