tar 升级,python重设新版本,wine卸载

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

[root@5201351 ~]# systemctl start tftp.socket
[root@5201351 ~]# systemctl start tftp.service

 

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

 

 

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值