Re: VDQ finding dnf names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2024-03-26 at 15:31 -0400, Jon LaBadie wrote:
> On Tue, Mar 26, 2024 at 04:41:33PM -0000, Beartooth wrote:
> > 
> > 	I normally have two or three browsers open. Most have been
> > installed for so long I no longer remember what dnf calls them.
> > 
> > 	My wife, who also runs F39, has been having trouble with
> > the ones
> > she has, and I have yet to get around to trying to diagnose them.
> > Today as
> > a stopgap I tried to install some others for her, using dnf.
> > 
> > 	It couldn't find brave, falcon, opera, nor vivaldi. VERY
> > Dumb
> > Question : How do I look up what it calls them?
> 
> If you know the path to the browser, perhaps /usr/bin/opera, AND have
> the repo for it active, you could try the dnf command "provides".
> 
> $ dnf provides /usr/bin/opera

A while back I wrote a little script:
   $ cat bin/whats
   #!/bin/bash
   # Identify what package $1 is from, if any
   
   if [ $# -ne 1 ]; then
           echo "Usage: whats arg"
           exit
   fi
   if ! bin=$(which "$1" 2> /dev/null); then
           if ! [ -e "$1" ] ; then # Maybe it's a file
                   echo "$1" not found
                   exit
           fi
           bin="$1"
   fi
   cand=$(rpm -qf "$bin" 2> /dev/null)
   if echo "$cand" | grep "not owned" > /dev/null 2>&1; then
           file "$bin"
   #       echo No idea
           exit
   fi
   rpm -qi "$cand"

So 'whats opera' would give the package info for the command, assuming
it's installed.

poc
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux