Created
June 1, 2025 11:35
-
-
Save anabarasan/e6c7f08795909b8ff20df2d79caea92e to your computer and use it in GitHub Desktop.
steps i use to install / uninstall discord app from the tar archive in fedora
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download discord archive file with the below command, | |
curl -L "https://discord.com/api/download?platform=linux&format=tar.gz" --output discord.tar.gz | |
# Extract the archive to /opt directory, with the below command, | |
sudo tar -xvzf discord.tar.gz -C /opt | |
# Create a link to discord binary in system path with the below command, | |
sudo ln -sf /opt/Discord/Discord /usr/bin/Discord | |
# Copy Icon file to the correct path with the below command, | |
sudo ln -sf /opt/Discord/discord.png /usr/share/icons/discord.png | |
# modify the menu icon defenition file, to modify the path to binary and install to correct location, | |
sudo sed -i 's|^Exec|#Exec|g' /opt/Discord/discord.desktop | |
echo 'Exec=/usr/bin/Discord' | sudo tee -a /opt/Discord/discord.desktop | |
sudo cp /opt/Discord/discord.desktop /usr/share/applications/discord.desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete the discord menu definition file, | |
sudo rm /usr/share/applications/discord.desktop | |
# delete the discord icon file, | |
sudo rm /usr/share/icons/discord.png | |
# remove the discord binary link file, | |
sudo unlink /usr/bin/Discord | |
# delete the discord file from the system, | |
sudo rm -rf /opt/Discord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment