Showing posts with label check. Show all posts
Showing posts with label check. Show all posts

Sunday, August 6, 2017

Ubuntu Commands to Check Package Version

Ubuntu Commands to Check Package Version


Check Package Version
apt-cache
The option policy can show the installed and the remote version (install candidate) of a package.


apt-cache policy <package>
apt-get
You can run a simulation to see what would happen if you upgrade/install a package:
apt-get -s install <package>
To see all possible upgrades, run a upgrade in verbose mode and (to be safe) with simulation, press n to cancel:
apt-get -V -s upgrade
apt-show-versions
If installed, shows version information about one or more packages:
apt-show-versions <package>
Passing the -u switch with or without a package name will only show upgradeable packages.
aptitude
The console GUI of aptitude can display upgradeable packages with new versions. Open the menu Upgradable Packages. Pressing v on a package will show more detailed version information.
Or on the command-line:
aptitude versions <package>
Passing -V will show detailed information about versions, again to be safe with the simulation switch:
aptitude -V -s install <package>
Substituting install <package> with upgrade will show the versions from all upgradeable packages.

Another way using dpkg and grep:
dpkg -s <package> | grep Version
4
"The program apt-show-versions is currently not installed. You can install it by typing.." � Peter Ehrlich Jul 2 12 at 20:45

download file now

Read more »

Thursday, August 3, 2017

Ubuntu check RAM

Ubuntu check RAM


free -m

in MBs

download file now

Read more »