wget https://ftp.gnu.org/gnu/tar/tar-1.29.tar.gz
tar xvzf tar-1.29.tar.gz
cd tar-1.29
FORCE_UNSAFE_CONFIGURE=1
export FORCE_UNSAFE_CONFIGURE
./configure
make
#备份旧版
mv /bin/tar /bin/tar.old
#复制新版到目录
cp src/tar /bin/tar
#删除备份
rm /bin/tar.old
pythoncho设重新版本
解压并编译安装
tar -zxvf [下载的安装包]
cd [解压后的文件]
./configure (安装yum -y install gcc)
make(这一步会有一点慢)
make install
4.建立软连接,让默认的python指向我们自己新安装的版本
mv /usr/bin/python /usr/bin/python2.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
或者:
mv /usr/bin/python /usr/bin/python22
ln -s /usr/local/bin/python3 /usr/bin/python
5.修改yum配置文件
因为yum使用python2,因此替换为python3后可能无法正常工作,继续使用这个python2因此修改yum配置文件(vi /usr/bin/yum)。把文件头部的#!/usr/bin/python改成#!/usr/bin/python2.6保存退出即可
-
安装TFTP服务器:
yum install tftp-server
-
安装TFTP客户端:
yum install tftp
-
执行上面的命令后会自动搜索相应的最新版软件并自动下载安装,服务器软件里面还包含了xinetd(deamon,守护进程)。
-
安装好后要进入如下的配置:
-
1)、修改vi /etc/xinetd.d/tftp文件:
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot #-s /tftpboot
disable = no #yes
per_source = 11
cps = 100 2
flags = IPv4
}
/tftpboot 为tftp服务器的根目录
server_args中参数-s指定chroot,-c指定了可以创建文件。
centos7 启动tftp-server服务
启动tftp-server服务,这里要注意的是启动tftp.service之前必须得先启动tftp.socket |
1. 卸载wine及相关组件
yum remove wine*
2. 删除相关文件
~/.wine
~/.local/share/applications
/usr/lib/wine
3. 搜索删除,然后根据情况删除
find / -name *wine*
参考:
1. 完全卸载wine http://blog.csdn.net/taizhoufox/article/details/5496568