Results 1 to 4 of 4

Thread: Command equivalent to yum provides in Ubuntu

  1. #1
    Join Date
    May 2020

    Command equivalent to yum provides in Ubuntu

    I am new to Ubuntu, and I am running Ubuntu 20.04 LTS (focal).

    I am working on installing and configuring the product mailman. One of the commands was to add some lines to the file /etc/aliases and then execute newaliases. I did that and discovered that the command expected the file /etc/postfix/

    I executed the "Ubuntu equivalent" command for RHEL-variants' command:
    yum provides /etc/postfix/*
    The command that I specifically used was:
    apt-file search  /etc/postfix/*
    The result did not provide me with the name of a package, as I know would occur with the RHEL-variant command. So, I decided to check for the existing of the file within /etc/postfix. I found the file /etc/postfix/, which I believe should have been found and the package name provided.

    Did I do something wrong or is the command output on Ubuntu not at all like the command used in Red Hat Enterprise Linux (RHEL), Scientific Linux, or CentOS?


  2. #2
    Join Date
    May 2010

    Re: Command equivalent to yum provides in Ubuntu

    Could also try to verify your findings too

  3. #3
    Join Date
    Nov 2008
    Magdalena,New Mexico,USA
    Ubuntu Development Release

    Re: Command equivalent to yum provides in Ubuntu

    Hi Warron...

    in short, the answer is might find some interesting reading here....

    and more specific to your question might be found here....

    Last edited by NM5TF; June 21st, 2020 at 03:23 PM. Reason: added info
    Registered Linux User # 529389
    Arch Linux, MX 18.3 Linux
    my personal web page
    "If you're not living on the edge, you're taking up too much space"--Unknown

  4. #4
    Join Date
    Apr 2008
    Norwich CT
    Ubuntu Mate

    Re: Command equivalent to yum provides in Ubuntu

    Apt is very different from yum, which is very different from pacman or yay.

    Your best bet is to read the apt manpage.

    I drink my Ubuntu black, no sugar.
    Ubuntu user 28819

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts