Howto update amd drivers

From Vidalinux Wiki
Revision as of 21:20, 26 September 2023 by 10.233.102.144 (talk) (Created page with "get files sha256sum using this script: cat > /tmp/header.txt << EOF sha256sums=(feb74796c3152cbafaba89d96e68a152f209bd3058c7eb0413cbe1ab0764e96f e32801c38b475cd8df17a407726b86db3de26410f563d688325b4d4314fc5354 EOF cat > getsha256sum << EOF #!/bin/bash major=23.20 major_short=23.20 minor=1654522 ubuntu_ver=22.04 repo_folder_ver=5.7 FILES="amf-amdgpu-pro_1.4.31-${minor}.${ubuntu_ver}_amd64.deb libamdenc-amdgpu-pro_1.0-${minor}.${ubuntu_ver}_amd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

get files sha256sum using this script:

cat > /tmp/header.txt << EOF
sha256sums=(feb74796c3152cbafaba89d96e68a152f209bd3058c7eb0413cbe1ab0764e96f
        e32801c38b475cd8df17a407726b86db3de26410f563d688325b4d4314fc5354
EOF
cat > getsha256sum << EOF 
#!/bin/bash  

major=23.20
major_short=23.20
minor=1654522
ubuntu_ver=22.04
repo_folder_ver=5.7

FILES="amf-amdgpu-pro_1.4.31-${minor}.${ubuntu_ver}_amd64.deb
libamdenc-amdgpu-pro_1.0-${minor}.${ubuntu_ver}_amd64.deb
libegl1-amdgpu-pro-oglp_${major_short}-${minor}.${ubuntu_ver}_i386.deb
libegl1-amdgpu-pro-oglp_${major_short}-${minor}.${ubuntu_ver}_amd64.deb
libgl1-amdgpu-pro-oglp-dri_${major_short}-${minor}.${ubuntu_ver}_i386.deb
libgl1-amdgpu-pro-oglp-dri_${major_short}-${minor}.${ubuntu_ver}_amd64.deb
libgl1-amdgpu-pro-oglp-ext_${major_short}-${minor}.${ubuntu_ver}_amd64.deb
libgl1-amdgpu-pro-oglp-gbm_${major_short}-${minor}.${ubuntu_ver}_amd64.deb
libgl1-amdgpu-pro-oglp-glx_${major_short}-${minor}.${ubuntu_ver}_i386.deb
libgl1-amdgpu-pro-oglp-glx_${major_short}-${minor}.${ubuntu_ver}_amd64.deb
libgles1-amdgpu-pro-oglp_${major_short}-${minor}.${ubuntu_ver}_i386.deb
libgles1-amdgpu-pro-oglp_${major_short}-${minor}.${ubuntu_ver}_amd64.deb
libgles2-amdgpu-pro-oglp_${major_short}-${minor}.${ubuntu_ver}_i386.deb
libgles2-amdgpu-pro-oglp_${major_short}-${minor}.${ubuntu_ver}_amd64.deb
vulkan-amdgpu-pro_${major_short}-${minor}.${ubuntu_ver}_i386.deb
vulkan-amdgpu-pro_${major_short}-${minor}.${ubuntu_ver}_amd64.deb"

for u in ${FILES}; do sha256sum ${u} >> /tmp/sha256sum.txt; done
cat /tmp/sha256sum.txt |awk '{print $1}'|sed 's/^/        /g' >> /tmp/header.txt && rm /tmp/sha256sum.txt
cat /tmp/header.txt |sed '$s/$/)/g'
EOF