Results 1 to 4 of 4

Thread: Command equivalent to yum provides in Ubuntu

  1. #1
    Join Date
    May 2020
    Beans
    3

    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/main.cf.

    I executed the "Ubuntu equivalent" command for RHEL-variants' command:
    Code:
    yum provides /etc/postfix/main.cf*
    The command that I specifically used was:
    Code:
    apt-file search  /etc/postfix/main.cf*
    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/main.cf.proto, 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?

    Thanks,
    Warron

  2. #2
    Join Date
    May 2010
    Beans
    461

    Re: Command equivalent to yum provides in Ubuntu

    Could also try packages.ubuntu.com to verify your findings too

  3. #3
    Join Date
    Nov 2008
    Location
    Magdalena,New Mexico,USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Command equivalent to yum provides in Ubuntu

    Hi Warron...

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

    https://help.ubuntu.com/community/Sw...ntu/FromLinux/

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

    https://help.ubuntu.com/community/Sw...LinuxAndFedora

    tommy
    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 http://users.gilanet.com/~tfrost
    "If you're not living on the edge, you're taking up too much space"--Unknown

  4. #4
    Join Date
    Apr 2008
    Location
    Norwich CT
    Beans
    2,661
    Distro
    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

Bookmarks

Posting Permissions

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