Shared server guidance · Question & answer

How do I install one approved Linux utility and review its dependencies first?

Use the distribution package manager to review the package and dependencies before installation. Trusted, correctly signed repository configuration matters more than simply obtaining a command with the right name. The example uses jq, a JSON utility; replace it only with an approved package available for your distribution.

IntermediateDebian/Ubuntu with APT, or RHEL-family Linux with DNF
Go to the answer

Before you start

  • An authorised SSH session on the Linux server.

Instructions

1. Preview the Debian or Ubuntu transaction

After a successful metadata refresh, inspect the simulated transaction. Review new packages, upgrades, removals and required space before authorising the real installation.

Remote Linux shell
apt-get -s install jq

-s simulates package operations. It is a planning aid, not a guarantee that a later transaction will be identical if repositories change.

2. Install through the correct package manager

Run only the command appropriate to your server and confirm its transaction summary. Omitting automatic yes flags keeps the proposed changes visible.

Remote Linux shell
sudo apt-get install jq

Debian/Ubuntu installation. Packages can run maintainer scripts, so the impact is broader than copying a single executable.

Remote Linux shell
sudo dnf install jq

RHEL-family alternative. Review the source repositories and dependency transaction before confirming.

3. Verify the installed utility

Check the executable’s own version rather than assuming the installer’s exit message proves it can run.

Remote Linux shell
jq --version

Expected output identifies the installed jq version.

Check the result

  • The intended package and reviewed dependencies are installed from approved repositories, and the utility reports a valid version.

Troubleshooting

The package cannot be found
Check repository support for your release and architecture. Do not add an unreviewed third-party repository merely to obtain the name.

Official references

Use the documentation for your installed version when a flag, service name or platform feature differs.