You are not logged in.
Pages: 1
Topic closed
Hello!
Discord recently launched an update and the version in the official repo is outdated and thus discord can't be used anymore.
I downloaded the tar.gz file on the official discord page, but every time I do:
sudo pacman -U discord-0.0.17.tar.gz
I get the following output:
loading packages...
error: missing package metadata in discord-0.0.17.tar.gz
error: 'discord-0.0.17.tar.gz': invalid or corrupted package
Does anyone know, why that's the case? Or am I just doing it completely wrong?
Offline
Because that's not an Arch package but a generic tarball, that tarball is used to create the package in the end but it needs some initial processing to be an Arch package. In any case had you updated your system before making this post you would have noticed that the official Arch package has been updated in the meantime, if you didn't or still don't get it, check your mirrors, they'd be two days out of date.
If you want some more background info on how this works you might want to read: https://wiki.archlinux.org/title/Creating_packages
Last edited by V1del (2022-02-20 11:30:07)
Offline
Discord in the official repos is at 0.0.17, you don't need to download anything from the discord website, and if you did, you would need a Arch Linux-compatible package (.pkg) file, not a generic Linux tarball.
EDIT: too slow. ![]()
Last edited by WorMzy (2022-02-20 11:28:40)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Because that's not an Arch package but a generic tarball, that tarball is used to create the package in the end but it needs some initial processing to be an Arch package. In any case had you updated your system before making this post you would have noticed that the official Arch package has been updated in the meantime, if you didn't or still don't get it, check your mirrors, they'd be two days out of date.
If you want some more background info on how this works you might want to read: https://wiki.archlinux.org/title/Creating_packages
Yeah, I just updated my system and everything works now! Official repo has been updated and I‘ve got the newest version. Updating your system is always something I forget to do x)
Thank you guys for your replies though!
Offline
mark your post as solved
Arch user for 2 years
Still a noob
Offline
In case this comes up for you again, you can use the tarball to get yourself up and running on the latest version of Discord, but it's not installed through pacman. I would suggest simply extracting it to /opt and creating a symlink to the executable in /usr/bin.
Of course, before you do this, you should uninstall the version of Discord installed through pacman.
sudo pacman -Rns discordThen you can extract the tarball you downloaded from Discord's site. I will set my target to /opt, but you can use any directory you wish. Inside of the tarball there is a directory "Discord", so you do not need to create a new directory first.
sudo tar xzf discord-0.0.17.tar.gz -C /optLastly, create the symlink that will allow you to run with the command "discord" through dmenu or a terminal.
sudo ln -s /opt/Discord/Discord /usr/bin/discordIf you are using desktop files in a launcher, you may want to create or install that as well. There will be an example in /opt/Discord/discord.desktop but you will need to alter the Exec line to point to the correct location used previously when creating the symlink.
When the next update comes, you would simply rename or remove the directory /opt/Discord and extract your new tarball to /opt. The symlink, desktop file, and anything else you've set up to point there should all be fine across updates.
This is obviously going to be more upkeep than having pacman handle it for you, but if you can't wait for arch packages to update, this will allow you to get it done more quickly. If you can wait a little, arch is generally quick at getting the updates out there.
Offline
If you dont want to wait for the arch update, and you used the tarball to install you can just update by extracting the new update the way you installed it
sudo tar -xvzf discord-***.tar.gz -C /optOffline
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed