Jump to content

Search the Community

Showing results for tags 'oracle linux'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


LinkedIn Profile URL


About Me


Cloud Platforms


Cloud Experience


Development Experience


Current Role


Skills


Certifications


Favourite Tools


Interests

Found 2 results

  1. When installing new packages on any operating system, a common piece of advice is to update the system before installing any new packages. This is so that your system will be free of any potential software bugs that may occur due to outdated software. While using your computer system, you may also mess up some of the packages and dependencies. A package update is also required to fix such issues. This article shows you how to update all packages in your Oracle Linux 8 system. Method for Updating all Packages in Oracle Linux 8 The next sections show you the method for updating all packages in Oracle Linux 8. To update all packages in your Oracle Linux 8 system, perform the following four steps while logged into the system. Step 1: Check for Available Updates Before updating your system, it is always good to look for any available updates. You may skip this step and head straight to updating all the packages. However, this command can be useful if you do not actually want to update all the packages. By following this step, you will be able to list all the packages for which updates are available so that you can select only the specific packages from this list that you want to update. In the Bonus Tip section of this article, we will also show you how to update only a single package in Oracle Linux 8. To check for all available updates in your Oracle Linux 8 system, issue the following command: $ sudo yum check-update After running the above command, wait a few seconds, and then you will see a list of all packages installed in your system for which updates are available, as shown in the image below: Step 2: Execute update Command Once you have checked for all available updates, if you still wish to update all the installed packages in your system, run the following command to do so: $ sudo yum update Using the update command without any options, flags, or parameters will update all packages that are installed in your Oracle Linux 8 system. Step 3: Provide System Password When you execute the update command, since you used the sudo keyword with this command, you will be prompted to enter the system password, as shown below: After you provide the system password and press the Enter key, the following message will appear in your terminal, after which the update process will begin. Step 4: Give Confirmation to Update Packages During the update process, the update command will run a quick scan that will list all the packages installed in your Oracle Linux 8 system. The scan also provides a summary of the packages that will be upgraded and/or installed after running this command. You will be asked to provide confirmation to update all the packages in your system, as highlighted in the following image. You can provide confirmation by typing “y” in your terminal. After you provide this confirmation, the “Downloading Packages” message will appear in your terminal, indicating that the package update is in progress, This message can be seen in the image below: Finally, when your system has completed updating all the packages it contains, you will see the “Completed” message in your terminal, as highlighted in the following image. It took around 15 minutes for our system to update all the installed packages. This update time may vary according to the number and complexity of packages installed in your system. Bonus Tip As a bonus tip, we will share a very quick command that allows you to update only a single package in your Oracle Linux 8 system. This command can prove to be extremely helpful in situations where you do not want to update all the installed packages in your system. Using it will save you precious time and conserve your system’s resources. To update a single package in your Oracle Linux 8 system, run the command below: $ yum update PackageName Here, replace the term “PackageName” with the name of the specific package that you wish to update. If running this command renders any error messages, then you can try it out with the “sudo” keyword. Running this command will update only the single specified package, as shown in the following image: Conclusion This article showed you how to update all the packages installed in your Oracle Linux 8 system without any hassle. An important point to remember is that the time taken to update your system is directly proportional to the number of packages installed in that system. The more packages you have installed in your system, the longer will it take to update your system. If you are running the “update” command for the very first time in your Oracle Linux 8 system, regardless of the number of packages installed, it will naturally take longer; in our case, it took around 15 minutes to fully update all packages. View the full article
  2. Docker is a series of frameworks that are using OS-level virtualization to provide applications in bundles called containers as service items. Containers are isolated from each other, and their programs, folders, and configuration files are packaged. They can communicate with each other via well-defined platforms. So, in this article, we will discuss how to install and configure Docker on your Oracle Linux 8 system. Prerequisites The Oracle Linux 8 must be installed on your Virtual Box Machine. The user should have root user rights to install Docker. Log in as a Sudo User Open your Oracle Linux 8 from your virtual box and login from it. Then, open your terminal in Oracle Linux 8 and make sure to login as a root user using the following sudo command: $ su It will ask you for your root user password, and you have to provide it to proceed with the further processes appended below. If you have already installed some repositories of Docker, then you have to remove them using the affixed yum command: # sudo yum remove docker docker-common docker-selinux docker-engine Install Required Repositories and Utilities At the very start, you have to install and enable some repositories that are useful and necessary for the installation of Docker. So at first, you have to install yum utilities. For this purpose, execute the command cited below: # sudo dnf install –y dnf-utils zip unzip Make sure to try these commands with sudo privileges, otherwise, it may not work properly. Secondly, you have to install and download the configuration repository for Docker, which is docker-ce. Use the appended command below in your terminal using sudo initialization: # sudo dnf config-manager –add-repo=https://download.docker.com/linux/centos/docker-ce.repo Install Docker Finally, you can install Docker on your Oracle Linux 8. Make sure to login as a root user. Use the following cited command to install Docker in Oracle Linux 8 via terminal: $ sudo dnf install –y docker-ce --nobest If you are unable to install Docker by using the above command, and you are facing some errors, there are some ways to resolve these. Try this command with the addition of the “allowing erasing” key at the end of it, as shown below: # sudo dnf install –y docker-ce –nobest –allowerasing You can also use the appended command below: # sudo dnf install –y docker-ce –nobest –skip-broken You can see your installation has begun. You have to wait for some time until it installs your Docker on Oracle Linux 8 successfully. Enable Docker Service To start using Docker, you have to enable your docker service in Oracle Linux 8. For this, use the following systemctl command as a root user: # systemctl enable docker.service This command will enable Docker on your Oracle Linux 8. It may also require authentication by asking for your password for the current user by which you are logged in. After enabling, you can start the Docker service by using the following systemctl command: # systemctl start docker.service Check Status You can also check the status of your newly installed Docker service, whether it is working properly or not. To find out the status of Docker, try the below-mentioned systemctl status command in the terminal: # systemctl status docker.service As clear from the image below that the newly installed Docker Engine is currently Active and running properly with no errors. Check for Docker Info Luckily, you can check for the info of the Docker that has just been installed on your Oracle Linux 8. To do so, try the below command as follows: # docker info Make sure to login as a root user first. Your system will display all the related information regarding Docker, as shown in the image. Check for Docker Version Also, if you want to check the installed version of Docker on your Oracle Linux 8, use the command as follows: # docker version Create User with Sudo Privileges Finally, your Docker is ready to use. If you don’t want to use a sudo account, then you have to assign the sudo privileges to another user to run docker commands. First of all, make a new user from the root account as follows: # useradd docker_user Add the Sudo User to a Group Add this newly created user in the /etc/sudoers file to make its entry clear, as follows: # echo “docker_user ALL-(ALL) NOPASSED: /usr/bin/docker” >> /etc/sudoers After adding this user to the sudoers file, you have to create a group and assign it to the user that has just been created as a sudo user. To do this, use the following command: # echo “alias docker=\”sudo /usr/bin/docker\”” >> /home/docker_user/.bash_profile We have used an alias in this newly created user’s bash_profile file to avoid any further use of sudo in your command. Login as Newly Created Sudo User Now, you have to login as a sudo user that you have especially created for Docker to try commands. Use Docker as a sudo user through the following command to switch to a newly created sudo user: #su – docker_user It may ask for your password to confirm your action. As for our case, we did not set a password, so it will not ask for docker_user password, as shown below. Now, you can finally start using Docker through different commands as a sudo user. Conclusion We have discussed and learned about very simple and efficient methods of installing Docker on Oracle Linux 8. In this article, we have educated ourselves about the basic installation and use of Docker. Hopefully, this article has facilitated a lot to make you understand Docker installation and its use. View the full article
  • Forum Statistics

    63.6k
    Total Topics
    61.7k
    Total Posts
×
×
  • Create New...