![]() | 1 | initial version |
Atom is a fairly easy editor to install on Fedora. To install it merely run:
sudo dnf install -y $(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep "https.*atom.x86_64.rpm" | cut -d '"' -f 4)
This command will determine the latest stable Atom release, download its RPM package and install it with DNF. I have this code snippet in my ~/.bashrc
file to check for Atom updates whenever I open up a terminal and install them if available:
function atomup {
ATOM_INSTALLED_VERSION=$(atom --version | cut -d ':' -f 2 | head -n 1 | sed 's/ //g')
ATOM_LATEST_VERSION=$(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep -E "https.*atom-amd64.tar.gz" | cut -d '"' -f 4 | cut -d '/' -f 8 | sed 's/v//g')
if [[ $ATOM_INSTALLED_VERSION < $ATOM_LATEST_VERSION ]]; then
sudo dnf install -y https://github.com/atom/atom/releases/download/v${ATOM_LATEST_VERSION}/atom.x86_64.rpm
fi
}
printf "" | zenity --progress --text "Display test" --auto-close 2> /dev/null
if [[ $? -eq 0 ]]; then
atomup
else
printf "X display is not available; likely running in a TTY. Update checking will not occur in a terminal session without X display access."
fi
![]() | 2 | No.2 Revision |
Atom is a fairly easy editor to install on Fedora. To install it merely run:
sudo dnf install -y $(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep "https.*atom.x86_64.rpm" | cut -d '"' -f 4)
This command will determine the latest stable Atom release, download its RPM package and install it with DNF. I have this code snippet in my ~/.bashrc
file to check for Atom updates whenever I open up a terminal and install them if available:
function atomup {
ATOM_INSTALLED_VERSION=$(atom --version | cut -d ':' -f 2 | head -n 1 | sed 's/ //g')
ATOM_LATEST_VERSION=$(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep -E "https.*atom-amd64.tar.gz" | cut -d '"' -f 4 | cut -d '/' -f 8 | sed 's/v//g')
if [[ $ATOM_INSTALLED_VERSION < $ATOM_LATEST_VERSION ]]; then
sudo dnf install -y https://github.com/atom/atom/releases/download/v${ATOM_LATEST_VERSION}/atom.x86_64.rpm
fi
}
printf "" | zenity --progress --text "Display test" --auto-close 2> /dev/null
if [[ $? -eq 0 ]]; then
atomup
atomup # atom --version will only return a usable result if it can connect to a display server
else
printf "X display is not available; likely running in a TTY. Update checking will not occur in a terminal session without X display access."
fi
![]() | 3 | No.3 Revision |
Atom is a fairly easy editor to install on Fedora. To install it merely run:
sudo dnf install -y $(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep "https.*atom.x86_64.rpm" | cut -d '"' -f 4)
This command will determine the latest stable Atom release, download its RPM package and install it with DNF. I have this code snippet in my ~/.bashrc
file to check for Atom updates whenever I open up a terminal and install them if available:
function atomup {
ATOM_INSTALLED_VERSION=$(rpm -qi atom | grep "Version" | ATOM_INSTALLED_VERSION=$(atom --version | cut -d ':' -f 2 | head -n 1 | sed 's/ //g')
cut -d ' ' -f 2)
ATOM_LATEST_VERSION=$(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep -E "https.*atom-amd64.tar.gz" | cut -d '"' -f 4 | cut -d '/' -f 8 | sed 's/v//g')
if [[ $ATOM_INSTALLED_VERSION < $ATOM_LATEST_VERSION ]]; then
sudo dnf install -y https://github.com/atom/atom/releases/download/v${ATOM_LATEST_VERSION}/atom.x86_64.rpm
fi
}
printf "" | zenity --progress --text "Display test" --auto-close 2> /dev/null
if [[ $? -eq 0 ]]; then
atomup # atom --version will only return a usable result if it can connect to a display server
else
printf "X display is not available; likely running in a TTY. Update checking will not occur in a terminal session without X display access."
fi
![]() | 4 | No.4 Revision |
Atom is a fairly easy editor to install on Fedora. To install it merely run:
sudo dnf install -y $(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep "https.*atom.x86_64.rpm" | cut -d '"' -f 4)
This command will determine the latest stable Atom release, download its RPM package and install it with DNF. I have this code snippet in my ~/.bashrc
file to check for Atom updates whenever I open up a terminal and install them if available:
ATOM_INSTALLED_VERSION=$(rpm -qi atom | grep "Version" | cut -d ':' -f 2 | cut -d ' ' -f 2)
ATOM_LATEST_VERSION=$(wget -q "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep -E "https.*atom-amd64.tar.gz" | cut -d '"' -f 4 | cut -d '/' -f 8 | sed 's/v//g')
if [[ $ATOM_INSTALLED_VERSION < $ATOM_LATEST_VERSION ]]; then
sudo dnf install -y https://github.com/atom/atom/releases/download/v${ATOM_LATEST_VERSION}/atom.x86_64.rpm
fi
I also created an article on the Fedora Wiki about Atom.
![]() | 5 | No.5 Revision |
Atom is a fairly easy editor to install on Fedora. To install it merely run:
sudo dnf install -y $(wget -q $(curl -sL "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep "https.*atom.x86_64.rpm" | cut -d '"' -f 4)
This command will determine the latest stable Atom release, download its RPM package and install it with DNF. I have this code snippet in my ~/.bashrc
file to check for Atom updates whenever I open up a terminal and install them if available:
ATOM_INSTALLED_VERSION=$(rpm -qi atom | grep "Version" | cut -d ':' -f 2 | cut -d ' ' -f 2)
ATOM_LATEST_VERSION=$(wget -q ATOM_LATEST_VERSION=$(curl -sL "https://api.github.com/repos/atom/atom/releases/latest" -O - | grep -E "https.*atom-amd64.tar.gz" | cut -d '"' -f 4 | cut -d '/' -f 8 | sed 's/v//g')
if [[ $ATOM_INSTALLED_VERSION < $ATOM_LATEST_VERSION ]]; then
sudo dnf install -y https://github.com/atom/atom/releases/download/v${ATOM_LATEST_VERSION}/atom.x86_64.rpm
fi
I also created an article on the Fedora Wiki about Atom.