Linux Tips

How To Verify Linux Bundle Model Earlier than Putting in It


Most of you’ll know discover the model of an put in package deal in Linux. However, what would you do to search out the packages’ model which aren’t put in within the first place? No downside! This information describes verify Linux package deal model earlier than putting in it in Debian and its derivatives like Ubuntu. This small tip may be useful for these questioning what model they’d get earlier than putting in a package deal.

Verify Linux Bundle Model Earlier than Putting in It

There are various methods to discover a package deal’s model even when it’s not put in already in DEB-based methods. Right here I’ve given just a few strategies.

Methodology 1 – Utilizing Apt

The short and soiled strategy to verify a package deal model, merely run:

$ apt present


$ apt present vim

Pattern output:

Bundle: vim
Precedence: optionally available
Part: editors
Origin: Ubuntu
Maintainer: Ubuntu Builders
Authentic-Maintainer: Debian Vim Maintainers
Bugs: https://bugs.launchpad.internet/ubuntu/+filebug
Put in-Measurement: 2,852 kB
Supplies: editor
Relies upon: vim-common (=, vim-runtime (=, libacl1 (>= 2.2.51-Eight), libc6 (>= 2.15), libgpm2 (>= 1.20.7), libpython3.6 (>= Three.6.5), libselinux1 (>= 1.32), libtinfo5 (>= 6)
Suggests: ctags, vim-doc, vim-scripts
Job: cloud-image, server
Supported: 5y
Obtain-Measurement: 1,152 kB
APT-Sources: bionic-updates/predominant amd64 Packages
Description: Vi IMproved – enhanced vi editor
Vim is an nearly appropriate model of the UNIX editor Vi.
Many new options have been added: multi stage undo, syntax
highlighting, command line historical past, on-line assist, filename
completion, block operations, folding, Unicode assist, and so forth.
This package deal incorporates a model of vim compiled with a relatively
commonplace set of options. This package deal doesn’t present a GUI
model of Vim. See the opposite vim-* packages when you want extra
(or much less).

N: There’s 1 further file. Please use the ‘-a’ swap to see it

As you’ll be able to see within the above output, “apt present” command shows, many necessary particulars of the package deal equivalent to,

package deal identify,
origin (from the place the vim comes from),
residence web page of the package deal,
obtain dimension,
and plenty of.

So, the accessible model of Vim package deal within the Ubuntu repositories is That is the model I get if I set up it on my Ubuntu system.

Alternatively, use “apt coverage” command when you favor brief output:

$ apt coverage vim
Put in: (none)
Model desk: 500
500 bionic-updates/predominant amd64 Packages
500 bionic-security/predominant amd64 Packages 500
500 bionic/predominant amd64 Packages

And even shorter:

$ apt checklist vim
Itemizing… Executed
vim/bionic-updates,bionic-security amd64
N: There’s 1 further model. Please use the ‘-a’ swap to see it

Apt is the default package deal supervisor in latest Ubuntu variations. So, this command is simply sufficient to search out the detailed info of a package deal. It doesn’t matter whether or not given package deal is put in or not. This command will merely checklist the given package deal’s model together with all different particulars.

Methodology 2 – Utilizing Apt-get

To discover a package deal model with out putting in it, we will use apt-get command with -s choice.

$ apt-get -s set up vim

Pattern output:

NOTE: That is solely a simulation!
apt-get wants root privileges for actual execution.
Preserve additionally in thoughts that locking is deactivated,
so do not rely upon the relevance to the actual present state of affairs!
Studying package deal lists… Executed
Constructing dependency tree
Studying state info… Executed
Recommended packages:
ctags vim-doc vim-scripts
The next NEW packages will likely be put in:
zero upgraded, 1 newly put in, zero to take away and 45 not upgraded.
Inst vim ( Ubuntu:18.04/bionic-updates, Ubuntu:18.04/bionic-security [amd64])
Conf vim ( Ubuntu:18.04/bionic-updates, Ubuntu:18.04/bionic-security [amd64])

Right here, -s choice signifies simulation. As you’ll be able to see within the output, It performs no motion. As a substitute, It merely performs a simulation to let you already know what’s going to occur if you set up the Vim package deal.

You’ll be able to substitute “set up” choice with “improve” choice to see what’s going to occur if you improve a package deal.

$ apt-get -s improve vim

Methodology Three – Utilizing Aptitude

Aptitude is an ncurses and commandline-based front-end to APT package deal manger in Debian and its derivatives.

To search out the package deal model with Aptitude, merely run:

$ aptitude variations vim
p bionic 500
p bionic-security,bionic-updates 500

It’s also possible to use simulation choice (-s) to see what would occur when you set up or improve package deal.

$ aptitude -V -s set up vim
The next NEW packages will likely be put in:
vim [2:8.0.1453-1ubuntu1.1]
zero packages upgraded, 1 newly put in, zero to take away and 45 not upgraded.
Must get 1,152 kB of archives. After unpacking 2,852 kB will likely be used.
Would obtain/set up/take away packages.

Right here, -V flag is used to show detailed info of the package deal model.

Equally, simply substitute “set up” with “improve” choice to see what would occur when you improve a package deal.

$ aptitude -V -s improve vim

One other strategy to discover the non-installed package deal’s model utilizing Aptitude command is:

$ aptitude search vim -F “%c %p %d %V”

Right here,

-F is used to specify which format needs to be used to show the output,
%c – standing of the given package deal (put in or not put in),
%p – identify of the package deal,
%d – description of the package deal,
%V – model of the package deal.

That is useful if you don’t know the total package deal identify. This command will checklist all packages that incorporates the given string (i.e vim).

Right here is the pattern output of the above command:

p vim Vi IMproved – enhanced vi editor
p vim-tlib Some vim utility features 1.23-1
p vim-ultisnips snippet resolution for Vim Three.1-Three
p vim-vimerl Erlang plugin for Vim 1.four.1+git20120
p vim-vimerl-syntax Erlang syntax for Vim 1.four.1+git20120
p vim-vimoutliner script for constructing an overview editor on prime of Vim zero.Three.four+pristine
p vim-voom Vim two-pane outliner 5.2-1
p vim-youcompleteme quick, as-you-type, fuzzy-search code completion engine for Vim zero+20161219+git

Methodology four – Utilizing Apt-cache

Apt-cache command is used to question APT cache in Debian-based methods. It’s helpful for performing many operations on APT’s package deal cache. One effective instance is we will checklist put in functions from a sure repository/ppa.

Not simply put in functions, we will additionally discover the model of a package deal even when it’s not put in. For example, the next command will discover the model of Vim package deal:

$ apt-cache coverage vim

Pattern output:

Put in: (none)
Model desk: 500
500 bionic-updates/predominant amd64 Packages
500 bionic-security/predominant amd64 Packages 500
500 bionic/predominant amd64 Packages

As you’ll be able to see within the above output, Vim shouldn’t be put in. When you wished to put in it, you’ll get model It additionally shows from which repository the vim package deal is coming from.

Methodology 5 – Utilizing Apt-show-versions

Apt-show-versions command is used to checklist put in and accessible package deal variations in Debian and Debian-based methods. It additionally shows the checklist of all upgradeable packages. It’s fairly helpful you probably have a combined steady/testing surroundings. For example, you probably have enabled each steady and testing repositories, you’ll be able to simply discover the checklist of functions from testing and likewise you’ll be able to improve all packages in testing.

Apt-show-versions shouldn’t be put in by default. It’s essential set up it utilizing command:

$ sudo apt-get set up apt-show-versions

As soon as put in, run the next command to search out the model of a package deal,for instance Vim:

$ apt-show-versions -a vim
vim:amd64 bionic
vim:amd64 bionic-security
vim:amd64 bionic-updates
vim:amd64 not put in

Right here, -a swap prints all accessible variations of the given package deal.

If the given package deal is already put in, you needn’t to make use of -a choice. In that case, merely run:

$ apt-show-versions vim

And, that’s all. If you already know another strategies, please share them within the remark part beneath. I’ll verify and replace this information.

Thanks for stopping by!

Assist us that can assist you:

Have a Good day!!

Source link

Related Articles

Back to top button