RHEL BasedRocky Linux

How To Install DBeaver on Rocky Linux 10

Install DBeaver on Rocky Linux 10

DBeaver stands as one of the most powerful and versatile database management tools available today. This comprehensive guide walks you through installing DBeaver on Rocky Linux 10, ensuring you have everything needed to manage your databases effectively.

What is DBeaver and Why Use It?

DBeaver is a free, open-source universal database management tool designed for developers, database administrators, and analysts. Unlike specialized database clients, DBeaver supports over 80 different database systems, including PostgreSQL, MySQL, MariaDB, SQLite, Oracle, SQL Server, and many NoSQL databases like MongoDB and Cassandra.

The application offers both Community and Enterprise editions. The Community edition provides robust functionality for most users, featuring an intuitive graphical interface, SQL editor with syntax highlighting, metadata browser, and data export/import capabilities. The Enterprise edition adds advanced features like document-oriented databases support, cloud storage integration, and premium technical support.

Rocky Linux 10 users particularly benefit from DBeaver’s cross-platform compatibility and lightweight resource consumption. The tool integrates seamlessly with Linux environments while providing a consistent user experience across different operating systems. Its plugin architecture allows extensive customization, making it adaptable to various workflow requirements.

Database professionals choose DBeaver over alternatives like MySQL Workbench or pgAdmin because of its unified interface approach. Instead of learning multiple tools for different database systems, users can manage all their databases from a single application. This significantly reduces the learning curve and improves productivity.

System Requirements and Prerequisites

Before installing DBeaver on Rocky Linux 10, ensure your system meets the necessary requirements. Your machine should have at least 2GB of RAM, though 4GB or more is recommended for optimal performance when working with large datasets. A GUI environment is essential since DBeaver is a graphical application that cannot run in text-only mode.

Administrator privileges are required for installation, specifically sudo access to install packages and modify system configurations. Ensure your user account has appropriate permissions or access to the root account when needed.

DBeaver requires Java Runtime Environment (JRE) version 21 or higher. Fortunately, recent DBeaver distributions include OpenJDK 21, eliminating the need for separate Java installation in most cases. However, if you prefer using a locally installed Java version, you can configure DBeaver accordingly.

Network connectivity is crucial during installation for downloading packages and database drivers. Ensure your Rocky Linux 10 system can access the internet and that firewall settings don’t block necessary connections.

Before proceeding with DBeaver installation, update your Rocky Linux 10 system to ensure all security patches and package updates are applied:

sudo dnf update -y
sudo dnf upgrade -y

This command updates all installed packages to their latest versions and applies security patches, creating a stable foundation for DBeaver installation.

Available Installation Methods

Rocky Linux 10 users have three primary methods for installing DBeaver, each with distinct advantages depending on your specific needs and preferences.

  • RPM Package Installation offers the most straightforward approach. You download the RPM package directly from DBeaver’s official website and install it using the rpm command. This method provides complete control over the installation process and works well for systems with limited internet connectivity or strict package management policies.
  • Repository-based installation involves adding DBeaver’s official repository to your system’s package manager. This approach enables automatic updates through the standard dnf update process, ensuring you always have the latest DBeaver version with minimal maintenance effort.
  • Snap package installation leverages the Snap package management system, providing DBeaver in a containerized environment. Snap packages include all dependencies and run in isolation, reducing potential conflicts with system packages while simplifying installation and updates.

Each method has specific use cases. Choose RPM installation for maximum control and one-time installations. Select repository installation for systems requiring regular updates and integrated package management. Opt for Snap installation when you prefer containerized applications or face dependency conflicts with traditional packages.

Method 1: RPM Package Installation

Downloading the RPM Package

Navigate to the official DBeaver website at dbeaver.io and locate the download section. Select the RPM package specifically designed for Red Hat Enterprise Linux and compatible distributions like Rocky Linux. The package name typically follows the format dbeaver-ce-[version].x86_64.rpm for 64-bit systems.

Alternatively, download the package directly using wget from the command line:

cd ~/Downloads
wget https://dbeaver.io/files/dbeaver-ce-latest-stable.x86_64.rpm

Verify the package integrity by checking its digital signature. DBeaver provides checksums and GPG signatures for all releases. Download the corresponding checksum file and verify:

wget https://dbeaver.io/files/dbeaver-ce-latest-stable.x86_64.rpm.sha256
sha256sum -c dbeaver-ce-latest-stable.x86_64.rpm.sha256

A successful verification displays “OK” next to the filename, confirming the package hasn’t been tampered with during download.

Installing DBeaver via RPM

Install the downloaded RPM package using the rpm command with appropriate flags:

sudo rpm -ivh dbeaver-ce-latest-stable.x86_64.rpm

The -i flag installs the package, -v provides verbose output for monitoring progress, and -h displays progress hashes. If dependencies are missing, the installation will fail with error messages indicating required packages.

For systems with dependency issues, use dnf to install the RPM package, which automatically resolves dependencies:

sudo dnf install ./dbeaver-ce-latest-stable.x86_64.rpm

This command instructs dnf to install the local RPM file while automatically downloading and installing any missing dependencies from configured repositories.

Monitor the installation output for any error messages or warnings. Successful installation typically displays messages about creating directories, extracting files, and configuring desktop integration.

Post-RPM Installation Configuration

After successful installation, verify DBeaver is properly installed by checking its location:

which dbeaver
ls -la /usr/bin/dbeaver

Launch DBeaver from the command line to ensure it starts correctly:

dbeaver &

The ampersand runs DBeaver in the background, allowing continued terminal use. DBeaver should appear in your applications menu under “Development” or “Office” categories, depending on your desktop environment.

Create a desktop shortcut for easy access by copying the system-wide desktop entry to your personal applications directory:

cp /usr/share/applications/dbeaver.desktop ~/Desktop/
chmod +x ~/Desktop/dbeaver.desktop

Configure DBeaver’s workspace directory during first launch. The workspace stores connection configurations, query history, and user preferences. Choose a location with sufficient disk space and regular backup coverage.

Method 2: Repository-Based Installation

Adding DBeaver Official Repository

Repository-based installation provides the most maintainable approach for long-term DBeaver usage. Start by importing DBeaver’s GPG signing key to verify package authenticity:

sudo rpm --import https://dbeaver.io/debs/dbeaver.gpg.key

Create a repository configuration file for DBeaver:

sudo tee /etc/yum.repos.d/dbeaver.repo > /dev/null <

This configuration creates a repository entry that dnf can use to install and update DBeaver automatically. The gpgcheck=1 setting ensures all packages are verified against DBeaver’s signing key before installation.

Refresh the repository metadata to make DBeaver packages available:

sudo dnf makecache
sudo dnf repolist | grep dbeaver

The second command should display the DBeaver repository in the list of available repositories, confirming successful configuration.

Installing DBeaver from Repository

With the repository configured, install DBeaver using dnf:

sudo dnf install dbeaver-ce

This command downloads the latest DBeaver Community Edition package and all required dependencies. The installation process displays detailed information about packages being installed and the total download size.

During installation, dnf automatically resolves dependencies and may install additional packages like specific Java versions or desktop integration libraries. Review the proposed changes and confirm the installation when prompted.

Monitor the installation progress and verify completion:

dnf list installed | grep dbeaver

Successful installation displays the installed DBeaver package with version information, confirming the application is ready for use.

Repository Installation Benefits

Repository-based installation offers significant advantages for system maintenance. Future DBeaver updates become available through the standard system update process:

sudo dnf update dbeaver-ce

This integration ensures DBeaver updates alongside other system packages, maintaining consistency and reducing maintenance overhead. Security updates and bug fixes are automatically available without manual intervention.

The repository approach also simplifies dependency management. If DBeaver requires additional packages or updated versions of existing components, dnf handles these changes automatically during updates.

For enterprise environments, repository installation supports automated update systems and configuration management tools like Ansible or Puppet, enabling consistent DBeaver deployments across multiple systems.

Method 3: Snap Package Installation

Installing Snapd on Rocky Linux 10

Snap packages provide containerized applications with all dependencies included. First, install snapd on Rocky Linux 10 by enabling the EPEL repository:

sudo dnf install epel-release
sudo dnf install snapd

Enable and start the snapd service:

sudo systemctl enable snapd.socket
sudo systemctl start snapd.socket

Create a symbolic link to make snap commands available in standard PATH locations:

sudo ln -s /var/lib/snapd/snap /snap

Restart your system or log out and back in to ensure all PATH changes take effect. Verify snapd installation:

snap version

This command should display version information for both snap and snapd, confirming successful installation.

Installing DBeaver via Snap

Install DBeaver using the snap package manager:

sudo snap install dbeaver-ce

Snap automatically downloads and installs DBeaver along with all dependencies in an isolated environment. The installation process may take several minutes depending on internet connection speed.

Monitor installation progress and verify completion:

snap list | grep dbeaver

Launch DBeaver using the snap command:

snap run dbeaver-ce

Alternatively, DBeaver should appear in your applications menu after installation. The snap version runs in a confined environment with restricted access to system resources for enhanced security.

Managing Snap-Installed DBeaver

Snap packages update automatically by default. To manually update DBeaver:

sudo snap refresh dbeaver-ce

Check for available updates without installing:

snap refresh --list

Snap-installed applications store user data in specific directories. DBeaver’s configuration and workspace files are located at:

~/snap/dbeaver-ce/current/.local/share/DBeaverData/

Understanding snap confinement is important for troubleshooting. Snap applications have restricted access to system resources, which may affect file access or network connectivity in some environments.

Post-Installation Configuration

First Launch and Initial Setup

Launch DBeaver from your applications menu or command line. The first startup displays a welcome screen with options for creating sample databases or connecting to existing ones.

Select an appropriate workspace directory when prompted. The workspace stores all DBeaver configurations, connection profiles, and query history. Choose a location with adequate disk space and include it in your backup strategy.

DBeaver’s initial interface displays several panels: the Database Navigator on the left, the main workspace area in the center, and various tool panels that can be customized based on your needs. Take time to familiarize yourself with the layout before proceeding with database connections.

The welcome tab provides quick access to common tasks like creating new connections, opening SQL scripts, and accessing documentation. These shortcuts help new users navigate DBeaver’s extensive feature set.

Java Runtime Configuration

Verify Java runtime detection by checking DBeaver’s system information. Navigate to Help → About DBeaver and examine the Java version information. DBeaver should display the Java runtime it’s using along with memory allocation details.

For optimal performance with large databases, consider adjusting Java memory settings. Create or modify the dbeaver.ini file in DBeaver’s installation directory:

sudo nano /usr/share/dbeaver/dbeaver.ini

Add or modify memory parameters:

-Xmx4g
-Xms1g
-XX:+UseG1GC

These settings allocate 4GB maximum memory, 1GB initial memory, and enable the G1 garbage collector for improved performance with large result sets.

Basic Application Settings

Access DBeaver preferences through Window → Preferences or the Edit menu depending on your desktop environment. Key settings to configure include:

General Settings: Set the workspace location, configure automatic updates, and adjust UI themes. DBeaver supports both light and dark themes along with several color schemes.

Network Settings: Configure proxy servers if your environment requires them for internet access. This affects driver downloads and update checks.

Security Settings: Enable master password protection for saved database credentials. This encrypts stored passwords and enhances security for shared systems.

Editor Settings: Customize SQL editor behavior including syntax highlighting, auto-completion, and formatting preferences. These settings significantly impact daily usage experience.

Creating Your First Database Connection

Database Connection Wizard

Creating database connections in DBeaver is straightforward through the New Connection wizard. Click the “New Database Connection” button in the toolbar or use Ctrl+Shift+O to open the connection dialog.

The wizard displays a comprehensive list of supported database types organized by categories. Popular choices include PostgreSQL, MySQL, MariaDB, SQLite, and various NoSQL databases. Select your target database type to proceed.

DBeaver automatically downloads required JDBC drivers when creating connections for the first time. This process requires internet connectivity and may take several minutes depending on the driver size and connection speed.

Configure connection parameters specific to your database:

  • Host/Server: Database server hostname or IP address
  • Port: Database server port (use defaults unless customized)
  • Database: Specific database name to connect to
  • Username/Password: Authentication credentials

Advanced settings include connection timeout values, SSL configuration, and driver-specific parameters. Most users can accept default values initially and adjust them later if needed.

Connecting to Popular Databases

PostgreSQL connections typically use port 5432 and require a database name, username, and password. For local installations, use “localhost” as the host and your PostgreSQL user credentials.

MySQL/MariaDB connections usually operate on port 3306. Specify the database name or leave blank to see all available databases after connecting. Enable SSL if your MySQL server requires encrypted connections.

SQLite connections are file-based and only require the path to the database file. Use the browse button to locate existing SQLite files or specify a path for new database creation.

Test each connection before saving by clicking the “Test Connection” button. Successful tests display connection details and confirm database accessibility. Failed tests provide error messages helping identify configuration issues.

Save connection profiles with descriptive names and organize them into folders for better management. Connection folders help organize databases by project, environment, or database type.

Advanced Connection Options

SSH Tunneling enables secure connections to databases behind firewalls or on private networks. Configure SSH tunnel settings in the connection dialog’s SSH tab, providing SSH server details and authentication credentials.

SSL/TLS Configuration ensures encrypted communication between DBeaver and database servers. Enable SSL in connection settings and configure certificate validation based on your security requirements.

Connection Pooling optimizes performance by reusing database connections. Configure pool settings for environments with frequent connection establishment and teardown.

Authentication Methods vary by database type. Some databases support multiple authentication mechanisms including password, certificate-based, or integrated authentication. Choose the method matching your database server configuration.

Basic DBeaver Usage

User Interface Overview

DBeaver’s interface consists of several key components designed for efficient database management. The Database Navigator panel displays connected databases in a tree structure, allowing easy browsing of schemas, tables, views, and other database objects.

The main workspace area contains tabbed editors for SQL scripts, data viewers, and result sets. Multiple tabs enable working with several queries or datasets simultaneously. The SQL editor provides syntax highlighting, auto-completion, and error detection for various SQL dialects.

The Properties panel displays detailed information about selected database objects, including table structures, indexes, constraints, and permissions. This panel automatically updates when selecting different objects in the Database Navigator.

Tool panels at the bottom display query results, execution plans, query history, and error logs. These panels are resizable and can be arranged according to your preferences.

Essential Database Operations

Running SQL Queries is DBeaver’s primary function. Open a SQL editor (Ctrl+N → SQL Script) and write your queries. Execute complete scripts with Ctrl+Enter or selected portions with Alt+X.

Browsing Database Objects through the Database Navigator reveals table structures, stored procedures, functions, and triggers. Double-click tables to open data viewers showing table contents with sorting and filtering capabilities.

Data Export and Import functionality supports multiple formats including CSV, Excel, SQL scripts, and database-specific formats. Right-click tables or result sets to access export options with customizable parameters.

Database Administration Tasks include user management, backup operations, and performance monitoring. Available features depend on the connected database type and user permissions.

Workspace and Project Management

Creating Projects helps organize related database connections and SQL scripts. Projects appear in the Database Navigator and can contain multiple connections, scripts, and bookmarks.

Managing Connection Profiles involves organizing connections into logical groups, setting connection colors for easy identification, and configuring connection-specific settings like default schemas or transaction modes.

Backup and Restore Configurations ensure your DBeaver settings persist across installations. Export configurations through File → Export → General → Preferences and import them on new systems.

Sharing Configurations with team members streamlines collaborative database work. Export connection profiles (without passwords) and share project configurations to maintain consistency across development teams.

Troubleshooting Common Issues

Installation Problems

  • Dependency Conflicts may occur when installing DBeaver alongside other Java applications. Resolve conflicts by updating conflicting packages or using alternative installation methods like Snap packages that include isolated dependencies.
  • Permission Issues during installation typically indicate insufficient user privileges. Ensure your user account has sudo access or contact your system administrator for installation assistance.
  • Network Connectivity Problems prevent package downloads during installation. Verify internet connectivity and check firewall settings that might block access to DBeaver repositories or download servers.
  • Package Verification Failures suggest corrupted downloads or missing GPG keys. Re-download packages and ensure GPG keys are properly imported before attempting installation.

Runtime and Connection Issues

Java Runtime Detection Problems occur when DBeaver cannot locate or use the installed Java version. Verify Java installation with java -version and ensure JAVA_HOME environment variable points to the correct Java installation.

Database Driver Download Failures happen when DBeaver cannot access driver repositories. Check network connectivity and proxy settings in DBeaver preferences. Manually download drivers if automatic downloads fail.

Connection Timeout Issues result from network problems or incorrect server settings. Increase timeout values in connection properties and verify database server accessibility using ping or telnet commands.

Authentication Problems indicate incorrect credentials or database server security settings. Verify username and password combinations and check database server logs for detailed error information.

Performance and Memory Issues

Memory Allocation Problems manifest as OutOfMemoryError exceptions when working with large datasets. Increase Java heap size in dbeaver.ini configuration file and restart the application.

Large Result Set Handling can overwhelm system resources. Use LIMIT clauses in queries, enable result set pagination in preferences, or export large datasets to files instead of displaying them entirely.

Query Performance Issues may result from inefficient SQL or database configuration problems. Use DBeaver’s execution plan viewer to analyze query performance and identify optimization opportunities.

Application Responsiveness Problems often relate to insufficient system resources or competing applications. Close unnecessary applications and consider upgrading system memory for better performance.

Security Considerations

Network Security

Firewall Configuration should allow DBeaver to connect to database servers while blocking unnecessary access. Configure iptables or firewalld rules to permit connections to specific database ports from trusted sources only.

Secure Connection Protocols like SSL/TLS encrypt data transmission between DBeaver and database servers. Always enable encryption when connecting to databases over untrusted networks or the internet.

VPN and Tunneling provide additional security layers for database connections. Use SSH tunnels or VPN connections when accessing databases across public networks or from remote locations.

Network Access Control involves restricting database access to specific IP addresses or network ranges. Configure database servers to accept connections only from authorized client systems.

Authentication and Authorization

Database Credential Management requires careful handling of usernames and passwords. Use DBeaver’s master password feature to encrypt stored credentials and avoid saving passwords in plain text files.

Connection Profile Security involves limiting access to saved connection profiles on shared systems. Set appropriate file permissions on DBeaver configuration directories and consider using separate user accounts for different projects.

Multi-Factor Authentication support varies by database type. Configure additional authentication mechanisms when available to enhance security beyond simple username/password combinations.

Role-Based Access Control integration ensures users can only access authorized database objects and operations. Coordinate with database administrators to implement appropriate user roles and permissions.

Maintenance and Updates

Keeping DBeaver Updated

Automatic Update Mechanisms vary by installation method. Repository installations update through standard system updates, while Snap packages update automatically by default.

Manual Update Procedures involve downloading new packages and installing them over existing installations. Always backup configurations before major updates to prevent data loss.

Version Compatibility considerations include database driver updates and configuration format changes. Test new versions in non-production environments before deploying updates.

Backup Before Updates protects against configuration loss or corruption during update processes. Export DBeaver preferences and copy workspace directories to secure locations.

Configuration Backup and Migration

Exporting Connection Profiles preserves database connection settings for backup or migration purposes. Use File → Export → General → Preferences to create exportable configuration files.

Workspace Backup Procedures should include both DBeaver configurations and workspace content. Regular backups prevent data loss from system failures or accidental deletions.

Migration Between Versions may require configuration updates or format conversions. Review DBeaver release notes for migration instructions and compatibility information.

System Migration Considerations include transferring DBeaver installations to new systems while preserving all configurations and customizations. Document custom settings and driver installations for accurate reproduction.

Congratulations! You have successfully installed DBeaver. Thanks for using this tutorial for installing DBeaver on Rocky Linux 10 system. For additional help or useful information, we recommend you check the official DBeaver website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button