Installing and updating software on Linux is easy and fast, especially when the software you need is located in the repository for your distribution. However, it can seem complex when the software you need is not available from your repository.
[ Take a Linux infrastructure planning assessment. ]
Fortunately, many Linux tools are "network transparent." Most package managers don't care whether a package is stored on your local drive or a computer on a network. So it's not only possible to download and install RPM packages from other sources; it's also easy.
What are vendor packages?
My yoga teacher, Cyndi, with whom I co-authored the book Linux for small business owners, was forced by COVID to change her business model from the old norm of in-person classes to virtual ones. For her classes, she uses Zoom running on Fedora Linux. She's found that it works very well for her, integrates into her workflow's current technology, and is familiar to her students.
However, Zoom isn't included in any of the Fedora repositories. So she has to download it from the Zoom website and install it using the command line.
This isn't entirely uncommon. Several vendors provide Linux packages from their websites. If you trust the vendor, at least enough to install and use their software, you can download and install it manually.
[ Check out 5 open source alternatives to Zoom. ]
Get the software
I'll use Zoom as an example of the steps to install software that is not contained in a Linux repository.
First, go to the download center from your Linux computer and find the Zoom package for Linux.
Select the Fedora package and click to download. When the file manager appears, select the temporary directory /tmp
and save the file.
Vendors don't always follow the same conventions that Linux repositories do. For instance, instead of semantic versioning, Zoom packages are always named zoom_x86_64.rpm
, which makes it hard to know which version is in the RPM file. Keep your downloaded packages organized, and keep track of versioning the best you can.
[ Get The ultimate CI/CD resource guide. ]
Install software
Open a terminal session and switch to the root user. You need the root password for this. Although I use the su
command, you can also use sudo to escalate your privileges.
$ su -
Password: <Enter the root password>
#
Be sure to use the trailing dash (-
) or it won't work correctly. The trailing dash causes your shell to adopt the root
user's environment. Change the present working directory (PWD) to /tmp
:
# cd /tmp
Run the dnf
command to do the update. The -y
option means to automatically answer "yes" to any questions asked by the DNF install procedure. Always use the full name of the RPM:
# dnf install -y zoom_x86_64.rpm
The installation should take only a few moments, and then you're ready to use the software as usual.
Update software
After using the Zoom client for a few months, Cyndi started getting messages indicating she needed to update to the newest version of her Zoom client or it would no longer work. Installing an update to an existing Zoom installation is just as easy as installation, and the steps are almost the same.
First, exit Zoom if it's currently running.
Download the latest Zoom package from the Zoom website as if you'd never installed it. Store the RPM in /tmp
.
Then open a terminal session, switch to the root user, and make /tmp
the PWD. Issue the following command:
# dnf update -y zoom_x86_64.rpm
This tells Fedora to update the package that's already installed with the package you provide. As with installation, the update should only take a few moments.
[ Check out Red Hat's Portfolio Architecture Center for a wide variety of reference architectures you can use. ]
Pretest an installation or update
Sometimes installing or updating a package can cause some unintended side effects. For most RPM packages I download from the internet, I try this quick test: Use the dnf
install (or update) commands without the -y
option. This tells you what other dependent packages will be installed or updated and any that might be removed because they're no longer needed.
Performing this quick, simple test can inform you that a package might overwrite an official Fedora library or program binary. If it looks like there will be a conflict, do not install the RPM. Consult your Linux distribution's help forums to find out whether there's a consensus on how to handle the conflict.
Final thoughts
Most vendors provide package downloads for many distributions. The procedure I've demonstrated in this article is similar for many packages not contained in your Linux distribution's repositories.
Any files stored in the /tmp
directory are automatically deleted when you reboot the system or the files are 10 days old. If you want to save the Zoom package file for longer, copy it to a different directory. I use the /root
directory for files I intend to keep for a few weeks, and I have a separate directory for files I expect to keep for several months or longer.
There are many ways to install packages on Linux, but the direct method is the one I prefer. It's safest to install from your distribution's repositories, but you can resort to a manual install when that's not possible.
[ Get the guide to installing applications on Linux. ]
About the author
David Both is an open source software and GNU/Linux advocate, trainer,
writer, and speaker who lives in Raleigh, NC. He is a strong
proponent of and evangelist for the "Linux Philosophy."
David has been in the IT industry for over 50 years. He has taught RHCE
classes for Red Hat and has worked at MCI Worldcom, Cisco, and the State
of North Carolina. He has been working with Linux and open source
software for over 20 years.
David likes to purchase the components and build his own computers from
scratch to ensure that each new computer meets his exacting
specifications. His primary workstation is an ASUS TUF X299 motherboard
and an Intel i9 CPU with 16 cores (32 CPUs) and 64GB of RAM in a
CoolerMaster MasterFrame 700.
David has written articles for magazines including Linux Magazine and
Linux Journal. His article "Complete Kickstart," co-authored with a
colleague at Cisco, was ranked 9th in the Linux Magazine Top Ten Best
System Administration Articles list for 2008. David currently writes
prolifically for OpenSource.com and Enable Sysadmin.
David currently has five books published with Apress, "The Linux
Philosophy for SysAdmins," a self-study training course in three
volumes "Using and Administering Linux: Zero to SysAdmin," that was
released in late 2019, and "Linux for Small Business Owners" with
co-author Cyndi Bulka.
David can be reached at LinuxGeek46@both.org or on Twitter @LinuxGeek46.
Browse by channel
Automation
The latest on IT automation for tech, teams, and environments
Artificial intelligence
Updates on the platforms that free customers to run AI workloads anywhere
Open hybrid cloud
Explore how we build a more flexible future with hybrid cloud
Security
The latest on how we reduce risks across environments and technologies
Edge computing
Updates on the platforms that simplify operations at the edge
Infrastructure
The latest on the world’s leading enterprise Linux platform
Applications
Inside our solutions to the toughest application challenges
Original shows
Entertaining stories from the makers and leaders in enterprise tech
Products
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Cloud services
- See all products
Tools
- Training and certification
- My account
- Customer support
- Developer resources
- Find a partner
- Red Hat Ecosystem Catalog
- Red Hat value calculator
- Documentation
Try, buy, & sell
Communicate
About Red Hat
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Select a language
Red Hat legal and privacy links
- About Red Hat
- Jobs
- Events
- Locations
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit