Methods to Check Ubuntu Version with Linux Command

check ubuntu version

In this guide, we will show you how you can easily check which version of Ubuntu you have on your system. There are 2 main ways you can achieve this

  • Using the Terminal
  • Using the GUI

So let’s dive in and see how you can use the above methods to check which version of Ubuntu resides on your system.

1) Using Terminal

This method works regardless of the Ubuntu release or desktop environment you are using.

To check the version, Open your terminal and run the following command

lsb_release -a

Output

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

To be more specific you can also run

lsb_release -r

Output

Release: 16.04

Another way you can retrieve the version of your Ubuntu system is by running

cat /etc/lsb-release

Output

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION=”Ubuntu 16.04.5 LTS”

To gather more detailed information run

cat /etc/*release

Output

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION=”Ubuntu 16.04.5 LTS”
NAME=”Ubuntu”
VERSION=”16.04.5 LTS (Xenial Xerus)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=”Ubuntu 16.04.5 LTS”
VERSION_ID=”16.04″
HOME_URL=”http://www.ubuntu.com/”
SUPPORT_URL=”http://help.ubuntu.com/”
BUG_REPORT_URL=”http://bugs.launchpad.net/ubuntu/”
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

In addition, this can also come in handy

# cat /etc/os-release

Output

NAME=”Ubuntu”
VERSION=”18.04.1 LTS (Bionic Beaver)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=”Ubuntu 18.04.1 LTS”
VERSION_ID=”18.04″
HOME_URL=”https://www.ubuntu.com/”
SUPPORT_URL=”https://help.ubuntu.com/”
BUG_REPORT_URL=”https://bugs.launchpad.net/ubuntu/”
PRIVACY_POLICY_URL=”https://www.ubuntu.com/legal/terms-and-policies/privacy-policy”
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

To get information about the kernel and architecture run

uname -a

Output

Linux ubuntu-16-04-1 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Also, the hostnamectl command can help you get the version of Ubuntu you are running

hostnamectl

This will give more detailed information such as Operating System, kernel, Architecture and in case the system is virtualized, it will display virtualization type and chassis.

Output

Static hostname: ubuntu-16-04-1
Icon name: computer-vm
Chassis: vm
Machine ID: bc429e3618b24cebbb4ba8e951e20250
Boot ID: 9b1912bef4064d1cb449a009c31fc1c6
Virtualization: kvm
Operating System: Ubuntu 16.04.5 LTS
Kernel: Linux 4.4.0-57-generic
Architecture: x86-64

Lastly, you can run this command on Terminal to give you the version of Ubuntu that you are running.

awk ‘/^Description: Ubuntu [0-9]/ ‘ /usr/share/python-apt/templates/Ubuntu.info

Output

Ubuntu 16.04

2) Using GUI – GNOME Desktop

If you are running Ubuntu from a Desktop environment, checking the version of Ubuntu is quite an easy and straight-forward thing to do.

If you are running Unity Desktop environment, Open ‘System Settings’ from the main menu as shown below

check which version of Ubuntu you have

Thereafter, click on the ‘Details’ icon as shown

check which version of Ubuntu you have

This is going to open a Window with a lot more information such as

  • CPU type
  • RAM capacity
  • Operating System
  • GPU

check which version of Ubuntu you have

If you are on GNOME display like in Ubuntu 18.04 and later, click on the drop-down arrow at the top left corner.

This will populate a pull-down menu. Select ‘Settings’ icon s shown

check which version of Ubuntu you have

In the next Window, scroll down and click on ‘Details’

check which version of Ubuntu you have

This is going to display a ton of information including the OS type, CPU, RAM and system architecture

check which version of Ubuntu you have

And that’s how you can check out your Ubuntu version and other System properties! Also, check out the neofetch tool you can easily use to populate system information. We hope this guide has been helpful. Drop your comments and feel free to share on your social platforms.

Read Also:

Source

Hands-on with the new Raspberry Pi 3 Model A+ and new Raspbian Linux release

imgp0182.jpg

Raspberry Pi 3 Model B Plus, 3 Model A Plus, and Original Model A Plus

Image: J.A. Watson

The Raspberry Pi Foundation made two significant announcements last week. First, the availability of the Raspberry Pi 3 Model A+, which has been eagerly awaited; then, the next day, a new release of the Raspbian Linux operating system. That means I have a lot to talk about today, so let’s get busy!

Raspberry Pi 3 Model A Plus

Image: Raspberry Pi Foundation

First, the new Pi 3 Model A+. This is a scaled-down and lower cost version of the Pi 3 Model B+. In the most important functional areas it is identical to the Pi3 B+: it has a 1.4GHz 64-bit quad-core ARM Cortex-A53 CPU, and dual-band 802.11ac wireless LAN and Bluetooth 4.2/BLE. That means the performance is very similar to the Model B+.

Where it is scaled down is:

  • Size: it has the smaller HAT form, identical to the original Pi A+
  • Memory: 512MB, half of what the Pi 3 Model B+ has
  • Networking: No wired ethernet connection
  • USB: Only one USB port, and no on-board USB hub

The size of the Pi 3 A+ board and the location of all of the external connections is identical to the original Pi A+ board, so existing A+ cases or mounting arrangements should still work.

Image: Raspberry Pi Foundation

There is as yet no “official” case for it, but the product announcement says that one is in the pipeline, and should be available before Christmas. It looks like it will be very similar to the existing B+ and Zero cases.

There is one significant difference, however. The power and disk activity LEDs have been moved to the opposite edge of the board (from the bottom left to the bottom right in the picture above). This is a small thing, but it could be significant (or at least irritating) in some situations or with some cases. For example, if the new case is made in the same way as the B+ case, this will mean that while the original Model A+ board will fit into it, the LEDs will not be visible.

Oh, one other small change, the 3A+ has a press-and-pray (friction) microSD card slot, like the 3B and 3B+, rather than the spring-loaded click-lock slot that the original A+ has.

The Pi 3 Model A+ seems to have two objectives: reduce the price compared to the Pi 3 Model B+, and improve the performance compared to the existing Pi Model A+. It looks to me like it has hit the mark very well on both of those.

In Switzerland (at the Pi-Shop.ch) it sells for CHF 27.-, compared to 39.- for the 3B+; in the U.K. it is about £10 less than the 3B+, and in Germany and France it is about €10 less. All of those are consistent with the $10 price difference in the U.S.

SEE: How to build a successful developer career (free PDF)

The performance advantages of the 3A+ over the original Pi Model A+ should be obvious. My very simplistic timing shows that from power-on to desktop-ready, the original Pi Model A+ takes about a minute, and the Pi 3 Model A+ takes about 25 seconds.

Also, having the on-board WiFi and Bluetooth adapter means that you can set up network connectivity, keyboard and mouse without using the USB port.

The bottom line is that the Pi 3 Model A+ looks really good to me, and it fills a gap which had been steadily growing as the Pi 2 and Pi 3 came along with only a Model B. Good stuff.

Moving on to the Raspbian update. The big news here is that a new Raspbian image has been added to the mix, a “minimal desktop” variant, specifically to reduce the size of the download. So now there are three distribution options:

  • Lite (~350MB), includes only the text interface (CLI)
  • Minimal Desktop (~1.0GB), includes the PIXEL desktop, Chromium browser, VLC media player and Python programming language. Does NOT include LibreOffice, Mathematica, Scratch programming language, Sonic Pi and various others.
  • Full Desktop (~1.8GB): Includes the PIXEL desktop and all associated software. This has been the standard GUI image until now.

The differences in the new version can be seen in the PIXEL desktop menus:

Raspbian Linux Minimal Version (left) and Full Version (right) Side-by-Side

Image: J.A. Watson

A quick comparison of the main menu shows that the minimal version doesn’t have Education, Office and Games. The Programming menu on the full version shows how many different programming languages and development tools it includes, whereas the minimal version only has the Geany programmer’s editor and the Python IDLE development environment.

Image: J.A. Watson

In fact, the software which has been removed corresponds nicely with the (relatively) new Recommended Software utility.

Each of the packages is listed with a short description, and a check-box so that you can install or remove them as you see fit. If you want even more information on a specific package, just highlight it in the list and click More Info at the bottom of the window.

This utility is included in both the minimal and full versions, so you can use either one as your starting point, and then easily add or remove packages to suit your needs and taste.

This kind of split has been coming for some time, as the Raspbian image size got larger and larger — it has roughly doubled in size since the initial release 5 years or so ago. I suspect that it was pushed over the edge by the recent discussion (and controversy) about including Mathematica in the base distribution.

I downloaded both PIXEL editions, then copied the minimal edition to a microSD card which I put into an original Pi Model A+, and I copied the full edition to another microSD card that I put into the new Pi 3 Model A+. Both ran just fine, and they were the sources for the two desktop images above. I wish that I had an original Pi Model A around here, because I would have downloaded the Lite image (text/CLI only) and put that on the Model A, so that I would have a matched set. There’s something about the symmetry of that which appeals to me.

Ah, but that’s not all! The other big news about the new Raspbian release is that it includes a custom hardware-accelerated version of the VLC Media Player. VLC is a very well known and widely used media player, and has long been my favorite on most other Linux distributions. The version that is now included in Raspbian uses the VideoCore engine to accelerate playback of H.264 video; in addition, if you have purchased the MPEG and VC-1 codec licenses it will use the VideoCore engine for those as well.

So, that sum’s up the Raspberry Pi Foundation’s big week of announcements. The new hardware is quite nice, and although it is not a huge step forward, it will be very much appreciated in the specific areas where the Model A and A+ have already found quite a bit of popularity. Likewise the new Raspbian images will be appreciated by those who missed Mathematica when it disappeared from the previous release, and those who have slower Internet connections and were spending inordinate amounts of time downloading the full Raspbian PIXEL images. Very nice.

PREVIOUS AND RELATED COVERAGE

Raspberry Pi 3 Model A+ out now: $25 for cut-down Pi 3 B+ with quad-core CPU

Raspberry Pi Foundation updates its budget single-board computer with the Raspberry Pi 3 Model A+.

A Raspberry Pi-style computer you can build yourself: Blueberry Pi

Provided you can think of something useful to do with a board with only 64MB of on-chip RAM.

Raspberry Pi 3 Model A+ review: A $25 computer with a lot of promise (TechRepublic)

Get the lowdown on how well the latest Raspberry Pi board performs with benchmarks and the full specs.

Raspberry Pi: Hands-on with Kali, openSUSE, Fedora and Ubuntu MATE Linux

There has been considerable progress made since the last time I tried a variety of Linux distributions other than Raspbian on the Raspberry Pi, so I’ve given four of them another try.

Raspberry Pi PoE HAT is back on sale again

After a problem with the PoE HAT for the Raspberry Pi 3B+, an updated version is now available.

Raspberry Pi: Hands-on with the updated Raspbian Linux

I have installed the new Raspbian 2018-10-09 release from scratch on some systems, and upgraded existing installations on others. Here are my experiences, observations and comments.

How to start your smart home: Home automation, explained (CNET)

Starting a smart home doesn’t have to be scary. Here are the basics.

Source

Download GNOME Maps Linux 3.31.2

GNOME Maps is an open source maps application specifically designed for the GNOME desktop environment. It provides users with an easy way to search for a specific location anywhere around the world.

With this software you will be able to search locations, get directions, pin specific areas, bookmark favorite places, check-in on specific locations, and much more. It includes a very detailed map of the world, powered by the MapQuest and Open Street Map projects.

Designed for GNOME

Its user interface is very familiar, especially to GNOME users, and allows you to quickly view your current location, based on the Wi-Fi network used, as well as to switch between Street and Satellite views.

Forthcoming versions of the GNOME Maps application will include various attractive features like address lookup (reverse geocoding), routing, public transportation, and even the popular “Check In” or “Where’s my friends?” functions.

Getting started with GNOME Maps

The map can be easily navigated using the zoom in and zoom out buttons displayed on the map at all times, as well as the mouse wheel. In addition, you can double left-click anywhere on the map to zoom in.

Right clicking anywhere on the map, will display two functions. The first one is called What’s here? and, if clicked, will display the first most important thing in the respective area. The second one is called I’m here! and, if clicked, it will immediately create a pin on that location.

A search bar is also provided on the main toolbar, allowing users to search for a specific location. If one or multiple locations with approximately the same name are found, they will be displayed under the search bar.

Bottom line

All in all, GNOME Maps is the first modern and easy-to-use maps application that was ever created for an open source desktop environment, as well as for the entire GNU/Linux ecosystem.

Source

Amazon Cloud Directory now available in the AWS GovCloud (US-West) Region

Posted On: Nov 16, 2018

Amazon Cloud Directory is now available in the AWS GovCloud (US-West) Region, an isolated region designed to address specific regulatory and compliance requirements of US Government agencies, as well as contractors, educational institutions, and other US customers that run sensitive workloads in the cloud.

Cloud Directory is a high-performance, serverless, hierarchical datastore. Cloud Directory makes it easy for you to organize and manage your multi-dimensional data such as users, groups, locations, and devices and the rich relationships between them. With Cloud Directory, you can enable use cases such as human resources applications, identity applications including advanced authorization, course catalogs, device registry and network topology.

Please see all AWS Regions where Cloud Directory is available. To learn more about Cloud Directory, see Amazon Cloud Directory.

Source

Install Slack on Ubuntu | Linux Hint

In today’s world, keeping a good collaboration with your team members is quite important. A good team collaboration yields the best result in everything, especially within the professional sector. Slack is a very powerful platform for keeping all the tasks of your new startup or business. Slack is an all-in-one collaboration platform for all sizes of teams and businesses. It offers records of previous conversations, “channel” divvied up by teams, clients, project(s) and others. Slack also integrates a number of handy tools at disposal. You can also connect services like Salesforce, JIRA, Zendesk, and even your proprietary software! Let’s check out on enjoying Slack on Ubuntu.

Installing Slack

There are various ways of installing Slack on your system.

Method 1

Fire up a terminal window and run the following command –

sudo snap install slack –classic

Method 2

Get the latest DEB package of Slack.

Now, run the following commands –

sudo dpkg -i slack-desktop-3.3.3-amd64.deb
sudo apt install -f

Using Slack

After the installation is complete, start Slack –

  • Creating a workspace

Let’s create a new workspace.

At first, enter your email.

Next, enter the confirmation code from your email.

Enter your full name.

Enter your password. Choose something strong.

Next, it’s time to choose your company name.

Now, choose your favorite Slack URL that will give you direct access to your Slack workspace.

Accept the “Terms and Conditions”.

You’re free to send invitations to whoever you like.

Voila! Your workspace is ready to enjoy!

This is the original window of your Slack desktop app.

  • Adding a channel

Channels are basically certain groups that’s specified for just one type of talk, for example, “#programming” for coders only, “#testing” for program testers only discussion etc.

Click the “+” icon after the “Channels” title.

Fill up the information for creating a new channel for your Slack workspace.

  • Integrating apps

On Slack, you are also free to add a number of additional online services from other service providers like Google Drive, Dropbox, Asana, Bitbucket, GitHub, and Trello etc.

Let’s enjoy Google Drive on our Slack.

Click the “+” icon after the “Apps” title.

Clicking “Install” button next to a listed app will redirect you on a browser.

From the browser, click “Install”.

Google Drive integration is complete! Now, you have to authenticate with your Google Drive account.

Enjoy!

Source

Linux 4.20 kernel slower than its previous stable releases, Spectre flaw to be blamed, according to Phoronix

On the 4th of November, Linux 4.20 rc-1 was released with a host of notable changes right from AMD Vega 20 support getting squared away, AMD Picasso APU support, Intel 2.5G Ethernet support, the removal of Speck, and other new hardware support additions and software features. The release that was supposed to upgrade the kernel’s performance, did not succeed in doing so. On the contrary, the kernel is much slower as compared to previous Linux kernel stable releases.

In a blog released by Phoronix, Michael Larabel,e lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org, discussed the results of some tests conducted on the kernel. He bisected the 4.20 kernel merge window to explore the reasons for the significant slowdowns in the kernel for many real-world workloads.

The article attributes this degrade in performance to the Spectre Flaws in the processor. In order to mitigate against the Spectre flaw, an intentional kernel change was made.The change is termed as “STIBP” for cross-hyperthread Spectre mitigation on Intel processors. Single Thread Indirect Branch Predictors (STIBP) prevents cross-hyperthread control of decisions that are made by indirect branch predictors. The STIBP addition in Linux 4.20 will affect systems that have up-to-date/available microcode with this support and where a user’s CPU has Hyper-Threading enabled/present.

Performance issues in Linux 4.20

Michael has done a detailed analysis of the kernel performance and here are some of his findings.

  • Many synthetic and real-world tests showed that the Intel Core i9 performance was not upto the mark.
  • The Rodinia scientific OpenMP tests took 30% longer, Java-based DaCapo tests taking up to ~50% more time to complete, the code compilation tests also extended in length.
  • There was lower PostgreSQL database server performance and longer Blender3D rendering times. All this was noticed in Core i9 7960X and Core i9 7980XE test systems while the AMD Threadripper 2990WX performance was unaffected by the Linux 4.20 upgrade.
  • The latest Linux kernel Git benchmarks also saw a significant pullback in performance from the early days of the Linux 4.20 merge window up through the very latest kernel code as of today. Those affected systems included a low-end Core i3 7100 as well as a Xeon E5 v3 and Core i7 systems.
  • The tests conducted found the Smallpt renderer to slow down significantly
  • PHP performance took a major dive, HMMer also faced a major setback compared to the current Linux 4.19 stable series.

What is surprising is that there are mitigations against Spectre, Meltdown, Foreshadow, etc in Linux 4.19 as well. But 4.20 shows an additional performance drop on top of all the previously outlined performance hits this year. In the entire testing phase, the AMD systems didn’t appear to be impacted. This would mean if a user disables Spectre V2 mitigations to account for better performance- the system’s security could be compromised.

You can head over to Phoronix for a complete analysis of the test outputs and more information on this news.

Source

Download Eye of GNOME Linux 3.31.1

Eye of GNOME is an open source application that allows users to view image files under open source, Linux-based operating systems. It is mostly used under the GNOME desktop environment, where it is called Image Viewer.

Features at a glance

Eye of GNOME can make use of EXIF information stored in digital camera images and display it on an optional sidebar that can be enabled from the View menu. It can read numerous image file formats, including ANI, BMP, GIF, ICO, JPEG, PCX, PNG, PNM, RAS, SVG, TGA, TIFF, WBMP, XBM, and XPM.

Basic image editing functions are displayed on the main toolbar, allowing users to rotate the current image 90 degrees to the left of right in incremental steps, as well as to flip the image horizontally or vertically. The changes can be saved.

Another interesting feature is the ability to import plugins, which add new functionality to the application, using the Preferences dialog. New plugins can be added by installing a binary package entitled Eye of GNOME Plugins.

Getting started with Eye of GNOME

If you use GNOME as your default desktop environment and you double click an image file, it will (most probably) open it with the Eye of GNOME application, which’s name is usually shorten to EOG by the Linux community.

The program provides users with a very basic and uncluttered user interface, comprised of the main toolbar and the statusbar. Optionally, users can choose to view a sidebar, an image gallery that allows them to access more photos from the current folder, as well as fullscreen and slideshow modes.

Availability and supported Linux OSes

The application is distributed as a standalone source package that can be configured, compiled and installed in any desktop environment or operating system. While no binary packages are available for a specific Linux OS, users can install the program from the default software repositories of their Linux distro.

Source

How to Install a Device Driver on Linux | Linux.com

…most default Linux drivers are open source and integrated into the system, which makes installing any drivers that are not included quite complicated, even though most hardware devices can be automatically detected.

To learn more about how Linux drivers work, I recommend reading An Introduction to Device Drivers in the book Linux Device Drivers.

Two approaches to finding drivers

1. User interfaces

If you are new to Linux and coming from the Windows or MacOS world, you’ll be glad to know that Linux offers ways to see whether a driver is available through wizard-like programs. Ubuntu offers the Additional Drivers option. Other Linux distributions provide helper programs, like Package Manager for GNOME, that you can check for available drivers.

2. Command line

What if you can’t find a driver through your nice user interface application? Or you only have access through the shell with no graphic interface whatsoever? Maybe you’ve even decided to expand your skills by using a console. You have two options:

Read more at OpenSource.com

Source

Primer on Yum Package Management Tool

The Yum package management tool is very crucial to the management of Linux systems either you are a Linux systems admin or a power user. Different package management tools are available across different Linux distros and the YUM package management tool is available on the RedHat and CentOS Linux distros. In the background YUM (Yellowdog Updater Modified) is dependent on the RPM(Red Hat Package Manager), and was created to enable the management of packages as parts of a larger system of software repositories instead of individual packages.

The configuration file for Yum is stored in the /etc/ directory, a file named yum.conf. This file can be configured and tweaked to suit certain needs of the system. Below is a sample of the contents of the yum.conf file:

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5

This configuration file could be different from whatever you may get on your machine, but the configuration syntax follows the same rules. The repository of packages that can be installed with Yum are usually saved in the /etc/yum.repos.d/ directory, with each *.repo file in the directory serving as repositories of the various packages that can be installed.

The image below shows the structure of a CentOS base repository:

YUM works in a pattern similar to all Linux commands, using the structure below:

With the command above, you can carry out all necessary tasks with YUM. You can get help on how to use YUM with the –help option:

You should get a list of the commands and options that can be run on YUM, just as seen in the images below:

List of commands

List of options

For the rest of this article, we would be completing a couple of tasks with Yum. We would query, install, update and remove packages.

Querying packages with YUM

Let’s say you just got a job as a Linux system administrator at a company, and your first task is to install a couple of packages to help make your tasks easier such as nmap, top etc.

To proceed with this, you need to know about the packages and how well they will fit the computer’s needs.

Task 1: Getting information on a package

To get information on a package such as the package’s version, size, description etc, you need to use the info command.

As an example, the command below would give information on the httpd package:

Below is a snippet of the result from the command:

Name : httpd
Arch : x86_64
Version : 2.4.6
Release : 80.el7.centos.1

Task 2: Searching for existing packages

It is not in all cases you would know the exact name of a package. Sometimes, all you would know is a keyword affiliated with the package. In these scenarios, you can easily search for packages with that keyword in the name or description using the search command.

The command below would give a list of packages that have the keyword “nginx” in it.

Below is a snippet of the result from the command:

collectd-nginx.x86_64 :Nginx plugin for collectd
munin-nginx.noarch : NGINX support for Munin resource monitoring
nextcloud-nginx.noarch : Nginx integration for NextCloud
nginx-all-modules.noarch : A meta package that installs all available Nginx module

Task 3: Querying a list of packages

There are a lots of packages that are installed or are available for installation on the computer. In some cases, you would like to see a list of those packages to know what packages are available for installation.

There are three options for listing packages which would be stated below:

yum list installed: lists the packages that are installed on the machine.

yum list available: lists all packages available to be installed in from enabled repositories.

yum list all: lists all of the packages both installed and available.

Task 4: Getting package dependencies

Packages are rarely installed as standalone tools, they have dependencies which are essential to their functionalities. With Yum, you can get a list of a package’s dependencies with the deplist command.

As an example, the command below fetches a list of httpd’s dependencies:

Below is a snippet of the result:

package: httpd.x86_64 2.4.6-80.el7.centos.1
dependency: /bin/sh
provider: bash.x86_64 4.2.46-30.el7
dependency: /etc/mime.types
provider: mailcap.noarch 2.1.41-2.el7
dependency: /usr/sbin/groupadd
provider: shadow-utils.x86_64 2:4.1.5.1-24.el7

Task 6: Getting information on package groups

Through this article, we have been looking at packages. At this point, package groups would be introduced.

Package groups are collection of packages for serving a common purpose. So if you want to set up your machine’s system tools for example, you do not have to install the packages separately. You can install them all at once as a package group.

You can get information on a package group using the groupinfo command and putting the group name in quotes.

yum groupinfo “group-name”

The command below would fetch information on the “Emacs” package group.

Here is the information:

Group: Emacs
Group-Id: emacs
Description: The GNU Emacs extensible, customizable, text editor.
Mandatory Packages:
=emacs
Optional Packages:
ctags-etags
emacs-auctex
emacs-gnuplot
emacs-nox
emacs-php-mode

Task 7: Listing the available package groups

In the task above, we tried to get information on the “Emacs” package. However, with the grouplist command, you can get a list of available package groups for installation purposes.

The command above would list the available package groups. However, some packages would not be displayed due to their hidden status. To get a list of all package groups including the hidden ones, you add the hidden command as seen below:

Installing packages with YUM

We have looked at how packages can be queried with Yum. As a Linux system administrator you would do more than query packages, you would install them.

Task 8: Installing packages

Once you have the name of the package you like to install, you can install it with the install command.

Example:

Task 9: Installing packages from .rpm files

While you have to install most packages from the repository, in some cases you would be provided with *.rpm files to install. This can be done using the localinstall command. The localinstall command can be used to install *.rpm files either they are available on the machine or in some external repository to be accessed by a link.

yum localinstall file-name.rpm

Task 10: Reinstalling packages

While working with configuration files, errors can occur leaving packages and their config files messed up. The install command can do the job of correcting the mess. However, if there is a new version of the package in the repository, that would be the version to be installed which isn’t what we want.

With the reinstall command, we can re install the current version of packages regardless the latest version available in the repository.

yum reinstall package-name

Task 11: Installing package groups

Earlier, we looked into package groups and how to query them. Now we would see how to install them. Package groups can be installed using the groupinstall command and the name of the package group in quotes.

yum groupinstall “group-name”

Updating packages with YUM

Keeping your packages updated is key. Newer versions of packages often contain security patches, new features, discontinued features etc, so it is key to keep your computer updated as much as possible.

Task 12: Getting information on package updates

As a Linux system administrator, updates would be very crucial to maintaining the system. Therefore, there is a need to constantly check for package updates. You can check for updates with the updateinfo command.

There are lots of possible command combinations that can be used with updateinfo. However we would use only the list installed command.

yum updateinfo list installed

A snippet of the result can be seen below:

FEDORA-EPEL-2017-6667e7ab29 bugfix epel-release-7-11.noarch

FEDORA-EPEL-2016-0cc27c9cac bugfix lz4-1.7.3-1.el7.x86_64

FEDORA-EPEL-2015-0977 None/Sec. novnc-0.5.1-2.el7.noarch

Task 13: Updating all packages

Updating packages is as easy as using the update command. Using the update command alone would update all packages, but adding the package name would update only the indicated package.

yum update : to update all packages in the operating system

yum update httpd : to update the httpd package alone.

While the update command will update to the latest version of the package, it would leave obsolete files which the new version doesn’t need anymore.

To remove the obsolete packages, we use the upgrade command.

yum upgrade : to update all packages in the operating system and delete obsolete packages.

The upgrade command is dangerous though, as it would remove obsolete packages even if you use them for other purposes.

Task 14: Downgrading packages

While it is important to keep up with latest package updates, updates can be buggy. Therefore in a case where an update is buggy, it can be downgraded to the previous version which was stable. Downgrades are done with the downgrade command.

yum downgrade package-name

Removing packages with YUM

As a Linux system administrator, resources have to be managed. So while packages are installed for certain purposes, they should be removed when they are not needed anymore.

Task 15: Removing packages

The remove command is used to remove packages. Simply add the name of the package to be removed, and it would be uninstalled.

While the command above would remove packages, it would leave the dependencies. To remove the dependencies too, the autoremove command is used. This would remove the dependencies, configuration files etc.

yum autoremove package-name

Task 15: Removing package groups

Earlier we talked about installing package groups. It would be tiring to begin removing the packages individually when not needed anymore. Therefore we remove the package group with the groupremove command.

yum groupremove “group-name”

Conclusion

The commands discussed in this article are just a little show of the power of Yum. There are lots of other tasks that can be done with YUM which you can check at the official RHEL web page. However, the commands this article has discussed should get anybody started with doing regular Linux system administration tasks.

Source

Spectre Patches Whack Intel Performance Hard With Linux 4.20 Kernel

Integrating fixes for Spectre and Meltdown has been a long, slow process throughout 2018. We’ve seen new vulnerabilities popping up on a fairly regular cadence, with Intel and other vendors rolling out solutions as quickly as they can be developed. To date, most of these fixes haven’t had a significant impact on performance for ordinary users, but there are signs that new patches in the Linux 4.20 kernel can drag Intel performance down. The impact varies from test to test, but the gaps in some benchmarks are above 30 percent.

Phoronix has the details and test results. The Core i9-7980XE takes 1.28x longer in the Rodinia 2.4 heterogeneous compute benchmark suite. Performance in the DaCapo benchmark (V9.12-MR1) is a massive 1.5x worse. Not every test was impacted nearly this much, as there were other tests that showed regressions in the 5-8 percent range.

Image by Phoronix

Michael Larabel spent some time trying to tease apart the problem and where it had come from, initially suspecting that it might be a P-state bug or an unintended scheduler change. Neither was evident. The culprit is STIBP, or Single Thread Indirect Branch Predictors. According to Intel, there are three ways of mitigating branch target injection attacks (Spectre v2): Indirect Branch Restricted Speculation (IBRS), Single Thread Indirect Branch Predictors (STIBP), and Indirect Branch Predictor Barrier (IBPB). IBRS restricts speculation of indirect branches and carries the most severe performance penalty. STIBP is described as “Prevents indirect branch predictions from being controlled by the sibling Hyperthread.”

IBRS flushes the branch prediction cache between privilege levels and disables branch prediction on the sibling CPU thread. The STIBP fix, in contrast, only disables branch prediction on the HT core. The performance impact is variable, but in some cases it seems as though it would be less of a performance hit to simply disable Hyper-Threading altogether.

I would caution against reading into these results as they might apply to Windows users. There are differences between the patches that have been deployed on Linux systems versus their Windows counterparts. Microsoft recently announced, for example, that it will adopt the retpoline fix in Linux for Spectre Variant 2 flaws, improving overall performance in certain workloads. There seems to be some significant performance impacts in the 4.20 kernel, but what I can’t find is a detailed breakdown on exactly whether these fixes are already in Windows or will be added. In short, it’s not clear if these changes to Linux performance have any implications at all for non-Linux software.

Larabel has also written a follow-up article comparing the performance of all Spectre / Meltdown mitigation patches on Intel hardware through the present day. The impact ranges from 2-8 percent in some tests to 25 – 35 percent in others. There’s conclusive evidence that the Linux 4.20 kernel impacts performance in applications where previous patches did not, and several tests where the combined performance impact is enough to put AMD ahead of Intel in tests Intel previously won. How much this will matter to server vendors is unclear; analysts have generally predicted that these security issues would help Intel’s sales figures as companies replace systems. The idea that these ongoing problems could push companies to adopt AMD hardware instead is rarely discussed and AMD has not suggested this is a major source of new customer business.

Source

WP2Social Auto Publish Powered By : XYZScripts.com