Re: question about packages

2017-02-21 Thread sberg
- Original Message -
From: Cheng Rk [mailto:crq...@ymail.com]
To: users@lists.fedoraproject.org
Sent: Mon, 20 Feb 2017 23:08:32 + (UTC)
Subject: Re: question about packages

then a question is why don't you (Fedora) make a a vim package since `dnf 
install vim` is such a high demand?

It is available to install quite easily if you look for it.

[root@hostname ~]# dnf list vim\*
Last metadata expiration check: 0:32:16 ago on Tue Feb 21 04:50:08 2017.
Installed Packages
vim-common.x86_64   2:8.0.329-1.fc25
 @updates
vim-enhanced.x86_64 2:8.0.329-1.fc25
 @updates
vim-filesystem.x86_64   2:8.0.329-1.fc25
 @updates
vim-minimal.x86_64  2:8.0.329-1.fc25
 @updates

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: question about packages

2017-02-20 Thread Jon LaBadie
On Mon, Feb 20, 2017 at 09:50:51PM +0100, john.david.r.smith wrote:
> hi.
> i can install the package 'vim' via `sudo dnf install vim`
> but there is no package called vim in the list returned by `dnf search vim`.
> 
> is there a way to get the real package name given the name vim?
> (i want a generic way to resolve such a name).
> - John

Two things come to mind.

  dnf list 'vim*' ordnf list '*vim*'

  dnf provides /usr/bin/vim

jon
-- 
Jon H. LaBadie  jo...@jgcomp.com
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: question about packages

2017-02-20 Thread Cheng Rk

then a question is why don't you (Fedora) make a a vim package since `dnf 
install vim` is such a high demand?___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: question about packages

2017-02-20 Thread stan
On Mon, 20 Feb 2017 21:50:51 +0100
"john.david.r.smith"  wrote:

> hi.
> i can install the package 'vim' via `sudo dnf install vim` but there
> is no package called vim in the list returned by `dnf search vim`. is
> there a way to get the real package name given the name vim? (i want
> a generic way to resolve such a name).

This will work if the package containing vim is installed on your
system.

locate vim

This gives the location of the vim executable, /usr/bin/vim.  There can
be a lot of output, so you could pipe it to less, locate vim | less

rpm -qf [path to vim from above command] or
rpm -qf /usr/bin/vim

This gives the name of the package that installed that executable.
vim-enhanced-8.0.329-1.fc25.x86_64

$ rpm -q --filesbypkg vim-enhanced-8.0.329-1.fc25.x86_64
vim-enhanced  /etc/profile.d/vim.csh
vim-enhanced  /etc/profile.d/vim.sh
vim-enhanced  /usr/bin/rvim
vim-enhanced  /usr/bin/vim
vim-enhanced  /usr/bin/vimdiff
vim-enhanced  /usr/bin/vimtutor

dnf info vim-enhanced will give general information about the package.

I am not aware of a way to query package contents if the package isn't
installed.  e.g. it is in a repository  Perhaps someone else will give
that answer.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


question about packages

2017-02-20 Thread john.david.r.smith

hi.
i can install the package 'vim' via `sudo dnf install vim` but there is no 
package called vim in the list returned by `dnf search vim`.
is there a way to get the real package name given the name vim? (i want a 
generic way to resolve such a name).
- John
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org