Re: dnf install from list file

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

 



dnf install `cat file`

On Thu, Feb 21, 2019 at 9:02 AM stan via users
<users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Thu, 21 Feb 2019 15:36:08 +0100
> "Patrick Dupre" <pdupre@xxxxxxx> wrote:
>
> > How can I make a dnf install "list of pkgs in a file"?
> >
> > I tried dnf install `file`
> >
> > but it does not work.
>
> I usually use a python script to read the file and run dnf in a
> subprocess for each package.  That way, a single problem doesn't stop
> the whole update.
>
> I haven't tried these, so I don't know if they work, but you could try
> dnf update < $(cat file)
> or
> cat file | xargs dnf update
>
> Because I haven't tried them, there may be syntax or grammar errors in
> the commands.  The first should treat the file as a group, and will be
> faster if there are no dependency errors.  The second should do each
> package individually, so will be slower but error tolerant.
>
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[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