Linux命令行卸载AMD驱动,How-To Install/Uninstall AMD Radeon™ Software AMDGPU-PRO Driver for Linux® on an Ubu...

Notice

This driver is not compatible with Ubuntu 16.04.3 HWE.  Please refer to this advisoryfor details.

Installing the AMDGPU-PRO Driver

There are four simple steps involved in the installation of the AMDGPU-Pro Driver: Download, Extract, Install and Configure.  The instructions to perform the installation are intended for an Ubuntu installation of 16.04.2, and should take less than 10 minutes to complete.  Before installing the driver, a quick note on how to check if your system already has AMDGPU-PRO installed.  In addition, the recommended best practice is to bring the system up-to-date before starting the driver installation, with:

sudo apt update

sudo apt dist-upgrade

sudo reboot

System Check

The easiest way to find out if you have AMDGPU-Pro already installed on your Ubuntu System is to query the Debian package manager.

Using the following command at a terminal will provide you with the version of the AMDGPU-Pro stack on your system, or inform you that there are no packages found:

dpkg -l amdgpu-pro

Download

A direct link to download the Linux AMDGPU-PRO driver is given below and it is also available on the Driver Download Page. This file has a "tar.xz" extension which reflects a more-effective c ompression algorithm that (in most cases) creates a smaller archive than the more common gzip format.

NOTE: This file ca​n also be located via the Driver Download Page by locating your card and selecting the Linux Driver link.

Extract

After the archive is downloaded, extract the contents to a temporary location from which you can install it. The example below assumes you have downloaded the archive to /tmp and will extract to the same location. If your file was downloaded into the ~/Downloads/ folder by default, you can also extract and install from there, and afterwards you can remove the install files.

cd /tmp

tar -Jxvf amdgpu-pro-17.20-445420.tar.xz

Install

Once the archive is expanded on the local machine, run the included script (amdgpu-pro-install) to install the graphics stack.  During the installation you will be required to provide sudo access, and also to provide two confirmations to:

Install the packages, and

Allow installation of "unverified" packages from the AMDGPU-PRO archive.

The script will use the package manager to install the components of the graphics stack, with a short delay during the DKMS (Dynamic Kernel Module Support) installation. From the directory where you extracted the archive, issue the following command:

cd amdgpu-pro-17.20-445420​

./amdgpu-pro-install -y

sudo reboot​

After this you can restart your machine to launch using the new graphics stack.

Configure

Ensure that your user account is a member of the "video" group prior to using the vulkan driver. You can find which groups you are a member of with the following command:

groups

To add yourself to the video group you will need the sudo password and can use the following command:

sudo usermod -a -G video $LOGNAME

You will need to log out and in again to activate this change.

Uninstalling the AMD GPU-PRO Driver

If for any reason you wish to remove the AMDGPU-PRO graphics stack you can do this using the uninstallation script which was part of the installation and is present in your path. From the command prompt enter the following command:

amdgpu-pro-uninstall

Installing the Optional ROCm Component

This AMDGPU-Pro driver package incorporates the ROCm component that can be optionally installed for running Compute/OpenCL applications. You can install the component by issuing the following command:

sudo apt install -y rocm-amdgpu-pro

Configuring the Optional ROCm Component

The LLVM_BIN environment variable needs to be set prior to running ROCm applications.

To set it temporarily when running an individual ROCm command, such as clinfo, use:

env LLVM_BIN=/opt/amdgpu-pro/bin /opt/amdgpu-pro/bin/clinfo

To set it permanently for all bash and other sh-like shell users, you can use the following command:

echo 'export LLVM_BIN=/opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.sh

See the Ubuntu Environment Variables Community Help for more information.

To set it permanently for all csh users, you can use the following command:

echo 'setenv LLVM_BIN /opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.csh

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 要卸载mysqld_exporter-0.12.1.linux-amd64.tar.gz,可以按照以下步骤进行操作。 首先,找到你安装mysqld_exporter的位置。你可以使用以下命令来搜索: ``` sudo find / -name mysqld_exporter ``` 找到mysqld_exporter的安装目录后,进入该目录: ``` cd <mysqld_exporter的安装目录> ``` 运行以下命令来停止mysqld_exporter服务: ``` sudo systemctl stop mysqld_exporter.service ``` 然后,使用以下命令卸载mysqld_exporter: ``` sudo rm -rf <mysqld_exporter的安装目录> ``` 最后,删除mysqld_exporter的配置文件。可以使用以下命令删除: ``` sudo rm /etc/mysqld_exporter.conf ``` 完成以上步骤后,你已经成功卸载mysqld_exporter-0.12.1.linux-amd64.tar.gz。 ### 回答2: 卸载mysqld_exporter-0.12.1.linux-amd64.tar.gz,需要执行以下步骤: 1. 打开终端,通过`cd`命令进入mysqld_exporter-0.12.1.linux-amd64.tar.gz所在的目录。 2. 解压压缩包。可以使用`tar -zxvf mysqld_exporter-0.12.1.linux-amd64.tar.gz`命令来解压。 3. 进入解压后的目录。使用`cd mysqld_exporter-0.12.1.linux-amd64`命令。 4. 卸载mysqld_exporter。一般来说,安装mysqld_exporter时会生成一个可执行文件,可以通过运行`./mysqld_exporter --help`来查看详细的卸载参数。 5. 根据卸载参数,执行卸载命令。例如,如果卸载参数是`--uninstall`,可以运行`./mysqld_exporter --uninstall`来卸载。 6. 根据提示完成卸载过程。 7. 最后,删除解压后的目录以及压缩包。可以使用`rm -rf mysqld_exporter-0.12.1.linux-amd64.tar.gz`命令来删除。 以上就是卸载mysqld_exporter-0.12.1.linux-amd64.tar.gz的步骤和方法。请根据具体的情况调整命令和参数。 ### 回答3: 要卸载mysqld_exporter-0.12.1.linux-amd64.tar.gz,我们需要按照以下步骤进行操作: 1. 首先,进入mysqld_exporter-0.12.1.linux-amd64.tar.gz所在的目录。我们可以使用命令"cd /path/to/mysqld_exporter-0.12.1.linux-amd64.tar.gz"进行导航。 2. 确保我们有管理员权限(root或sudo用户)以执行卸载操作。 3. 解压缩mysqld_exporter-0.12.1.linux-amd64.tar.gz。可以使用"tar -xvzf mysqld_exporter-0.12.1.linux-amd64.tar.gz"命令来解压文件。 4. 进入解压后的目录。使用"cd mysqld_exporter-0.12.1.linux-amd64"命令导航到此目录。 5. 运行卸载命令。通常情况下,卸载命令会在解压后的目录中提供。我们可以执行"./uninstall"命令来卸载mysqld_exporter。 6. 等待卸载完成。执行卸载命令后,系统将卸载mysqld_exporter并删除相关文件和目录。 7. 检查是否成功卸载。我们可以通过尝试使用"mysqld_exporter"命令来验证是否成功卸载。如果命令未找到,则说明mysqld_exporter已被成功卸载。 请注意,这只是一般的卸载过程,具体步骤可能因特定的操作系统和环境而有所不同。在执行卸载操作之前,请确保备份重要数据以及仔细阅读该软件包的文档或官方网站上的卸载指南。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值