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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to