Depending on the package installed on your system, you can use -v or –version option to check the version of the installed package: <package_name> --version For example: firefox --version firefox -v Method 2 apt command has various options and one option is the list. It is used with...
Cross compiling Win32 (CLI) version of Cppcheck in Linux sudo apt-get install mingw32 make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"RDYNAMIC=""mv cppcheck cppcheck.exe Packages Besides building yourself on the platform of your choice there are also several ways to obtain pre-built pack...
The easiest way of installing a new version or upgrading the existing Python version in Linux environment is to use the distribution’s package manager. If you have DNF as your package manager, run the following command: # dnf upgrade python3 Alternatively, if you use APT as your package man...
Method 1: java -version Command To check the Java version on Linux, run the following: java -version The output displays the Java package version installed on your system. In the example above, OpenJDK version 11.0.24 is installed. Note:If the output indicates there is no such package on ...
SUMMARY The for loop variable is packages, but the loop body uses package. This is obviously a typo, causing the loop to check the same package (from a previous for loop) multiple times. ISSUE TYPE...
apt-get -V -s upgrade For instance, for the package, git, this shows : Read:How to use the APT command on Ubuntu/Debian Linux systems Using apt-cache Using the command apt-cache below will display the installed and the remote version of a package. ...
sudoaptinstallbuild-essential That’s it. You now have GCC installed in your system. The previous image confirms that GCC already resides on our system, which is true with most Linux distros. You can ascertain that GCC is installed on your system by checking its version. ...
So, the available version of Vim package in the Ubuntu repositories is8.0.1453. This is the version I get if I install it on my Ubuntu system. Alternatively, use"apt policy"command if you prefer short output: $ apt policy vimvim: ...
abhishek@itsfoss:~$ apt show ubuntu-restricted-extras Package: ubuntu-restricted-extras Version: 67 Priority: optional Section: multiverse/metapackages Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Bugs: https://bugs.launchpad.net/ubuntu/+filebug ...
apt-get install $1 -y elif [[ $1 == "zeek" ]]; then distrib=$(cat /etc/os-release | grep -E "^ID=" | cut -d"=" -f2) version=$(cat /etc/os-release | grep "VERSION_ID" | cut -d"\"" -f2) if [[ $distrib == "debian" || $distrib == "ubuntu" ]]; then...