centos 7
git 2
centos 7 自带的 git 版本很低:
1 2
| $ git version git version 1.8.3.1
|
安装 git 2
1 2 3
| yum -y install \ https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm \ && yum install -y git
|
keepalived 2
方式1:
1 2
| yum install -y http://www.nosuchhost.net/~cheese/fedora/packages/epel-7/x86_64/cheese-release-7-1.noarch.rpm yum install -y keepalived
|
方式2:
https://centos.pkgs.org/7/cheese-x86_64/keepalived-2.0.7-1.el7.x86_64.rpm.html
1 2 3
| wget http://www.nosuchhost.net/~cheese/fedora/packages/epel-7/x86_64/keepalived-2.0.7-1.el7.x86_64.rpm yum install -y libnl rpm -ivh keepalived-2.0.7-1.el7.x86_64.rpm
|
ffmpeg
1 2 3 4 5 6 7
| https://rpmfusion.org/
mirror list: https://mirrors.rpmfusion.org/mm/publiclist/#CA
http://mirrors.ustc.edu.cn/rpmfusion/free/el/
|
腾讯的 mirror:
1
| https://mirrors.cloud.tencent.com/help/rpmfusion.html
|
安装:
1 2
| yum install -y http://mirrors.ustc.edu.cn/rpmfusion/free/el/rpmfusion-free-release-7.noarch.rpm && \ yum install -y ffmpeg ffmpeg-devel
|
mysql
rpm 下载地址
1
| http://mirrors.163.com/mysql/Downloads/MySQL-5.7/
|
bonding状态查看:
1 2 3 4 5 6 7 8 9 10 11
| yum remove mariadb-libs
ver=$(curl -s http://mirrors.163.com/mysql/Downloads/MySQL-5.7/ | grep -Po 'mysql-\K5[.0-9]+(?=.tar.gz)' | sort -u | tail -n1)
wget http://mirrors.163.com/mysql/Downloads/MySQL-5.7/mysql-community-{client,libs,common}-${ver}-1.el7.x86_64.rpm
# wget http://mirrors.163.com/mysql/Downloads/MySQL-5.7/mysql-community-client-5.7.32-1.el7.x86_64.rpm \
yum localinstall -y mysql-community*.rpm && \ rm -f mysql-community*.rpm
|
scan
nmap
1 2 3
| yum remove -y nmap
rpm -ivh https://nmap.org/dist/nmap-7.91-1.x86_64.rpm
|
使用:
1 2
| nmap --script ssl-cert,ssl-enum-ciphers $host -p 443 nmap --script 'http*,ssl*' $host -p 443
|
net
tunctl
1 2 3 4 5 6 7 8 9 10
| cat > /etc/yum.repos.d/nux-misc.repo <<'EOF' [nux-misc] name=Nux Misc baseurl=http://li.nux.ro/download/nux/misc/el7/x86_64/ enabled=0 gpgcheck=1 gpgkey=http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro EOF
yum --enablerepo=nux-misc install -y tunctl
|
一些 Linux 笔记
apt 系列 os
离线一个包
1 2 3
| aptitude clean aptitude --download-only install <your_package_here> cp /var/cache/apt/archives/*.deb <your_directory_here>
|
arm64
htop
1 2
| # https://centos.pkgs.org/7/epel-aarch64/htop-2.2.0-3.el7.aarch64.rpm.html https://download-ib01.fedoraproject.org/pub/epel/7/aarch64/Packages/h/htop-2.2.0-3.el7.aarch64.rpm
|