Installing multiple packages with DNF command - Page 2
FedoraForum.org - Fedora Support Forums and Community
Page 2 of 2 FirstFirst 1 2
Results 16 to 29 of 29
  1. #16
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by PabloTwo

    Also, perhaps try using a lower value than "60" in case there is an upper limit to timeout value which might have been exceeded.
    Ok, then I just made it 50 seconds.

    Code:
    [root@localhost john]# cat /etc/default/grub
    GRUB_TIMEOUT=50
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet"
    GRUB_DISABLE_RECOVERY="true"
    [root@localhost john]#
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.19.13-300.fc29.x86_64
    Found initrd image: /boot/initramfs-4.19.13-300.fc29.x86_64.img
    Found linux image: /boot/vmlinuz-4.18.16-300.fc29.x86_64
    Found initrd image: /boot/initramfs-4.18.16-300.fc29.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-02cb3763856c428fa4170fb844ae31c5
    Found initrd image: /boot/initramfs-0-rescue-02cb3763856c428fa4170fb844ae31c5.img
    done
    [root@localhost john]#
    thanks..
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  2. #17
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Code:
    [root@localhost john]# cat /boot/efi/EFI/fedora/grub.cfg
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub2-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    set pager=1
    
    if [ -f ${config_directory}/grubenv ]; then
      load_env -f ${config_directory}/grubenv
    elif [ -s $prefix/grubenv ]; then
      load_env
    fi
    if [ "${next_entry}" ] ; then
       set default="${next_entry}"
       set next_entry=
       save_env next_entry
       set boot_once=true
    else
       set default="${saved_entry}"
    fi
    
    if [ x"${feature_menuentry_id}" = xy ]; then
      menuentry_id_option="--id"
    else
      menuentry_id_option=""
    fi
    
    export menuentry_id_option
    
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function load_video {
      if [ x$feature_all_video_module = xy ]; then
        insmod all_video
      else
        insmod efi_gop
        insmod efi_uga
        insmod ieee1275_fb
        insmod vbe
        insmod vga
        insmod video_bochs
        insmod video_cirrus
      fi
    }
    
    terminal_output console
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=50
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=50
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/01_menu_auto_hide ###
    if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
      set last_boot_ok=1
    else
      set last_boot_ok=0
    fi
    
    # Reset boot_indeterminate after a successful boot
    if [ "${boot_success}" = "1" ] ; then
      set boot_indeterminate=0
    # Avoid boot_indeterminate causing the menu to be hidden more then once
    elif [ "${boot_indeterminate}" = "1" ]; then
      set boot_indeterminate=2
    fi
    set boot_success=0
    save_env boot_success boot_indeterminate
    
    if [ x$feature_timeout_style = xy ] ; then
      if [ "${menu_show_once}" ]; then
        unset menu_show_once
        save_env menu_show_once
        set timeout_style=menu
        set timeout=60
      elif [ "${menu_auto_hide}" -a "${last_boot_ok}" = "1" ]; then
        set orig_timeout_style=${timeout_style}
        set orig_timeout=${timeout}
        if [ "${fastboot}" = "1" ]; then
          # timeout_style=menu + timeout=0 avoids the countdown code keypress check
          set timeout_style=menu
          set timeout=0
        else
          set timeout_style=hidden
          set timeout=1
        fi
      fi
    fi
    ### END /etc/grub.d/01_menu_auto_hide ###
    
    ### BEGIN /etc/grub.d/01_users ###
    if [ -f ${prefix}/user.cfg ]; then
      source ${prefix}/user.cfg
      if [ -n "${GRUB2_PASSWORD}" ]; then
        set superusers="root"
        export superusers
        password_pbkdf2 root ${GRUB2_PASSWORD}
      fi
    fi
    ### END /etc/grub.d/01_users ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Fedora (4.19.13-300.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.19.13-300.fc29.x86_64-advanced-98a62411-a076-44ee-8d15-d61e02f73e2b' {
    	load_video
    	set gfxpayload=keep
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd0,msdos1'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  f91827cf-d52c-4d8d-9454-356963fd1a55
    	else
    	  search --no-floppy --fs-uuid --set=root f91827cf-d52c-4d8d-9454-356963fd1a55
    	fi
    	linux	/vmlinuz-4.19.13-300.fc29.x86_64 root=/dev/mapper/fedora-root ro resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet 
    	initrd	/initramfs-4.19.13-300.fc29.x86_64.img
    }
    menuentry 'Fedora (4.18.16-300.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.18.16-300.fc29.x86_64-advanced-98a62411-a076-44ee-8d15-d61e02f73e2b' {
    	load_video
    	set gfxpayload=keep
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd0,msdos1'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  f91827cf-d52c-4d8d-9454-356963fd1a55
    	else
    	  search --no-floppy --fs-uuid --set=root f91827cf-d52c-4d8d-9454-356963fd1a55
    	fi
    	linux	/vmlinuz-4.18.16-300.fc29.x86_64 root=/dev/mapper/fedora-root ro resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet 
    	initrd	/initramfs-4.18.16-300.fc29.x86_64.img
    }
    menuentry 'Fedora (0-rescue-02cb3763856c428fa4170fb844ae31c5) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-02cb3763856c428fa4170fb844ae31c5-advanced-98a62411-a076-44ee-8d15-d61e02f73e2b' {
    	load_video
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='hd0,msdos1'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  f91827cf-d52c-4d8d-9454-356963fd1a55
    	else
    	  search --no-floppy --fs-uuid --set=root f91827cf-d52c-4d8d-9454-356963fd1a55
    	fi
    	linux	/vmlinuz-0-rescue-02cb3763856c428fa4170fb844ae31c5 root=/dev/mapper/fedora-root ro resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet 
    	initrd	/initramfs-0-rescue-02cb3763856c428fa4170fb844ae31c5.img
    }
    if [ "x$default" = 'Fedora (4.19.13-300.fc29.x86_64) 29 (Workstation Edition)' ]; then default='Advanced options for Fedora>Fedora (4.19.13-300.fc29.x86_64) 29 (Workstation Edition)'; fi;
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_ppc_terminfo ###
    ### END /etc/grub.d/20_ppc_terminfo ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  ${config_directory}/custom.cfg ]; then
      source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    thanks..
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  3. #18
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by tech291083
    Even the following command gives me no hope....thanks

    Code:
    [root@localhost john]# $ sudo grep -B3 "set timeout=" /boot/efi/EFI/fedora/grub.cfg
    bash: $: command not found...
    [root@localhost john]#
    Code:
    [root@localhost john]# grep -B3 "set timeout=" /boot/efi/EFI/fedora/grub.cfg
    terminal_output console
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=50
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=50
    --
        unset menu_show_once
        save_env menu_show_once
        set timeout_style=menu
        set timeout=60
    --
        if [ "${fastboot}" = "1" ]; then
          # timeout_style=menu + timeout=0 avoids the countdown code keypress check
          set timeout_style=menu
          set timeout=0
        else
          set timeout_style=hidden
          set timeout=1
    [root@localhost john]#
    thanks
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  4. #19
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,875
    Linux Chrome 71.0.3578.98

    Re: Installing multiple packages with DNF command

    From the grub.cfg file you have in /boot/efi/EFI/fedora:
    Code:
    terminal_output console
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=60
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=60
    fi
    and...
    Code:
    if [ x$feature_timeout_style = xy ] ; then
      if [ "${menu_show_once}" ]; then
        unset menu_show_once
        save_env menu_show_once
        set timeout_style=menu
        set timeout=60
      elif [ "${menu_auto_hide}" -a "${last_boot_ok}" = "1" ]; then
        set orig_timeout_style=${timeout_style}
        set orig_timeout=${timeout}
        if [ "${fastboot}" = "1" ]; then  <== Could you have fastboot set?
          # timeout_style=menu + timeout=0 avoids the countdown code keypress check
          set timeout_style=menu
          set timeout=0
        else
          set timeout_style=hidden
          set timeout=1
        fi
      fi
    fi
    I assume you have regenerated the grub.cfg into /boot/grub2/ directory. You can (and should) delete the one in /boot/efi/EFI/fedora/ since it will not be used.

  5. #20
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,875
    Linux Chrome 71.0.3578.98

    Re: Installing multiple packages with DNF command

    You are still using /boot/efi/EFI/fedora/grub.cfg.

    Your WORKING grub.cfg file is in /boot/grub2/grub.cfg

  6. #21
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Hi PabloTwo,

    Finally, It looks like I have got the boot menu working (GRUB_TIMEOUT=500, I set it to 500 seconds, just to try) and I did the following steps.

    As root,

    Code:
    [root@localhost john]# rm /boot/efi/EFI/fedora/grub.cfg
    rm: remove regular file '/boot/efi/EFI/fedora/grub.cfg'? y
    [root@localhost john]#
    Code:
    [root@localhost john]# cat /boot/efi/EFI/fedora/grub.cfg
    cat: /boot/efi/EFI/fedora/grub.cfg: No such file or directory
    [root@localhost john]#
    Code:
    [root@localhost john]# cat /etc/default/grub 
    GRUB_TIMEOUT=500
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet"
    GRUB_DISABLE_RECOVERY="true"
    [root@localhost john]#
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.19.14-300.fc29.x86_64
    Found initrd image: /boot/initramfs-4.19.14-300.fc29.x86_64.img
    Found linux image: /boot/vmlinuz-4.19.13-300.fc29.x86_64
    Found initrd image: /boot/initramfs-4.19.13-300.fc29.x86_64.img
    Found linux image: /boot/vmlinuz-4.18.16-300.fc29.x86_64
    Found initrd image: /boot/initramfs-4.18.16-300.fc29.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-02cb3763856c428fa4170fb844ae31c5
    Found initrd image: /boot/initramfs-0-rescue-02cb3763856c428fa4170fb844ae31c5.img
    done
    [root@localhost john]#
    Despite the above 2 steps, the boot menu never came, so I went into the BIOS. As mentioned earlier, my motherboard is Gigabyte H61M-S and it supports both Windows 7 and 8. Windows 8 needs UEFI, I guess.

    https://www.gigabyte.com/Motherboard...1M-S-rev-10#sp

    Please have a look at the photos of the BIOS taken by me on my mobile and then uploaded to imgur site. Please accept my apology for the not so good quality of these photos.

    https://imgur.com/a/IwY9UPU

    Yes, there is a feature called Fast Boot under the main menu called BIOS Features at the top. I had this Fast Boot option disabled for good as I never used Windows 8 even before installing Fedora 29. Even after installing Fedora 29, it was disabled as well. There is another option called Boot Mode Selection, which I always set to UEFI and Legacy. And the Storage Boot Option Control is always set to Legacy First.

    As far as I remember these 3 options have always been like this (Fast Boot option disabled, Boot Mode Selection set to UEFI and Legacy, Storage Boot Option Control set to Legacy First) ever since I was using Fedora 25, 27 and now 29 with this motherboard only. And with each of the earlier version of Fedora ie 25 and 27, boot menu worked fine without any changes made to BIOS.

    After installing Fedora 29, I have noticed the that Fedora has put it self in the Boot Options in the BIOS. Normally physical devices such as DVD-Writer and hard drive are there. I am not sure whether it is a new concept or not. But I have also observed that the PC boots and shows boot menu no matter where exactly the Fedora entry is in the Boot Options in the BIOS. The pc boots when Fedora is no 2 and it also boots when it is no 3.

    Please let me know whether I have done everything properly or not. Without your quick replies I would be lost. Many thanks.
    Last edited by tech291083; 12th January 2019 at 07:02 AM.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  7. #22
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Hi bgstack15,

    With your command dnf -y install $( cat ~/.install1.txt ), I was able to install the packages from a text file.

    But following are the groups that I would like to install as well from a text file named listGroupsAll and as told by you I have put them in a text file with each of them occupying a separate line.


    Administration Tools
    Audio Production
    Books and Guides
    C Development Tools and Libraries
    D Development Tools and Libraries
    Development Tools
    Editors
    LibreOffice
    Network Servers
    Office/Productivity
    RPM Development Tools
    Security Lab
    Sound and Video
    System Tools
    Text-based Internet


    I used the following command, but I could not install them.

    Code:
    [root@localhost Documents]# dnf -y groupinstall $(cat ~/. listGroupsAll)
    cat: /root/.: Is a directory
    Warning: Module or Group 'Administration' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'Production' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Guides' does not exist.
    Warning: Module or Group 'C' does not exist.
    Warning: Module or Group 'Development' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Libraries' does not exist.
    Warning: Module or Group 'D' does not exist.
    Warning: Module or Group 'Development' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Libraries' does not exist.
    Warning: Module or Group 'Development' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'Network' does not exist.
    Warning: Module or Group 'Servers' does not exist.
    Warning: Module or Group 'RPM' does not exist.
    Warning: Module or Group 'Development' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'Security' does not exist.
    Warning: Module or Group 'Lab' does not exist.
    Warning: Module or Group 'Sound' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Video' does not exist.
    Warning: Module or Group 'System' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'Text-based' does not exist.
    Warning: Module or Group 'Internet' does not exist.
    Error: Nothing to do.
    [root@localhost Documents]#

    Then I put each of the groups within double quotes as shown below in another text file called listGroupsAllWithQuotes and issued the following command, but again I failed. I got the idea of double quotes from the following site. There is one example which is -
    dnf groupinstall "Web Server" -y
    https://www.rootusers.com/25-useful-...ment-in-linux/

    "Administration Tools"
    "Audio Production"
    "Books and Guides"
    "C Development Tools and Libraries"
    "D Development Tools and Libraries"
    "Development Tools"
    "Editors"
    "LibreOffice"
    "Network Servers"
    "Office/Productivity"
    "RPM Development Tools"
    "Security Lab"
    "Sound and Video"
    "System Tools"
    "Text-based Internet"

    Code:
    [root@localhost Documents]# dnf -y groupinstall $(cat ~/. listGroupsAllWithQuotes)
    cat: /root/.: Is a directory
    Last metadata expiration check: 0:01:45 ago on Sat 12 Jan 2019 11:14:26 AM IST.
    Warning: Module or Group '"Administration' does not exist.
    Warning: Module or Group 'Tools"' does not exist.
    Warning: Module or Group '"Audio' does not exist.
    Warning: Module or Group 'Production"' does not exist.
    Warning: Module or Group '"Books' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Guides"' does not exist.
    Warning: Module or Group '"C' does not exist.
    Warning: Module or Group 'Development' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Libraries"' does not exist.
    Warning: Module or Group '"D' does not exist.
    Warning: Module or Group 'Development' does not exist.
    Warning: Module or Group 'Tools' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Libraries"' does not exist.
    Warning: Module or Group '"Development' does not exist.
    Warning: Module or Group 'Tools"' does not exist.
    Warning: Module or Group '"Editors"' does not exist.
    Warning: Module or Group '"LibreOffice"' does not exist.
    Warning: Module or Group '"Network' does not exist.
    Warning: Module or Group 'Servers"' does not exist.
    Warning: Module or Group '"Office/Productivity"' does not exist.
    Warning: Module or Group '"RPM' does not exist.
    Warning: Module or Group 'Development' does not exist.
    Warning: Module or Group 'Tools"' does not exist.
    Warning: Module or Group '"Security' does not exist.
    Warning: Module or Group 'Lab"' does not exist.
    Warning: Module or Group '"Sound' does not exist.
    Warning: Module or Group 'and' does not exist.
    Warning: Module or Group 'Video"' does not exist.
    Warning: Module or Group '"System' does not exist.
    Warning: Module or Group 'Tools"' does not exist.
    Warning: Module or Group '"Text-based' does not exist.
    Warning: Module or Group 'Internet"' does not exist.
    Error: Nothing to do.
    [root@localhost Documents]#
    I am not sure what I am doing wrong here, please guide me, thanks.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  8. #23
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    While the following command lists many of the groups I want to install as available. Thanks

    Code:
    [root@localhost Documents]# dnf grouplist 
    Available Environment Groups:
       Fedora Custom Operating System
       Minimal Install
       Fedora Server Edition
       Fedora Workstation
       Fedora Cloud Server
       KDE Plasma Workspaces
       Xfce Desktop
       LXDE Desktop
       LXQt Desktop
       Cinnamon Desktop
       MATE Desktop
       Sugar Desktop Environment
       Development and Creative Workstation
       Web Server
       Infrastructure Server
       Basic Desktop
    Installed Groups:
       LibreOffice
       GNOME Desktop Environment
       Fonts
       Hardware Support
    Available Groups:
       3D Printing
       Administration Tools
       Ansible node
       Audio Production
       Authoring and Publishing
       Books and Guides
       C Development Tools and Libraries
       Cloud Infrastructure
       Cloud Management Tools
       Compiz
       Container Management
       D Development Tools and Libraries
       Design Suite
       Development Tools
       Domain Membership
       Fedora Eclipse
       Editors
       Educational Software
       Electronic Lab
       Engineering and Scientific
       FreeIPA Server
       Headless Management
       MATE Applications
       Medical Applications
       Milkymist
       Network Servers
       Office/Productivity
       Python Classroom
       Python Science
       Robotics
       RPM Development Tools
       Security Lab
       Text-based Internet
       Window Managers
       Graphical Internet
       KDE (K Desktop Environment)
       Games and Entertainment
       Sound and Video
       System Tools
    [root@localhost Documents]#
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  9. #24
    Join Date
    Jan 2015
    Location
    Al Ain, UAE
    Posts
    836
    Mac OS X 10.14 Firefox 64.0

    Re: Installing multiple packages with DNF command

    I think you should use KickStart:
    https://www.aeronetworks.ca/2014/06/...nes-using.html
    --
    Have fun!
    http://www.aeronetworks.ca

  10. #25
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Hi bgstack15,

    During installing the packages (Total download size 9.7 GB) from a text file, I took a few screen-shots of the Disks app in between the process, which showed me that as the process went on, the /root partition was getting smaller in size. So I guess that all the packages normally get installed on the /root partition in an automatic type of installation like mine in this case, right? Before I started there was 45 GB free out of 54 GB on /root partition and by the end of the process only 35 GB was free out of 45 GB. Although it looked like the packages were installed with relative ease, there was an error message at the end as follows.

    Code:
    Error summary 
    Disk Requirements:
    At least 12157 MB more space needed on the / filesystem.
    Is this normal? Should I expand the /root partition ASAP? If yes, I hope it does not affect my running system and data. Is there an easy to follow step by step tutorial specifically for Fedora 29 for a beginner like me? Or is it better to reinstall Fedora using standard partitions instead of LVM in future?

    Please feel free to have a look at these screen-shots at the following URL. I have uploaded and arrange the screen-shots, but if they are not in the right order when you see then, please forgive me.

    https://imgur.com/a/UzZT0Me

    Thanks a lot.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  11. #26
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by flyingdutchman
    I did try Kickstart a few years and versions ago, but can't recall when. I need to learn that again. Thanks.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  12. #27
    Join Date
    Sep 2006
    Posts
    1,668
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    Hi PabloTwo,

    After working for 2-3 days, the grub boot menu has stopped showing up completely despite set to 500 seconds earlier (GRUB_TIMEOUT=500) . I have not changed anything as such. I keep the system updated daily. Any suggestions? thanks.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  13. #28
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,875
    Linux (Android 5.0) Chrome 71.0.3578.99

    Re: Installing multiple packages with DNF command

    In case, for whatever reason, grub is set to be hidden, pressing ESC or SHIFT key at the right moment should make it display. But better yet, to insure it is not set to hidden, add this to your /etc/default/grub file:

    GRUB_TIMEOUT_STYLE=menu

    Then rebuild grub.cfg

  14. #29
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    5,612
    Linux (Fedora) Firefox 64.0

    Re: Installing multiple packages with DNF command

    We all have our little lists and techniques for rebuilding a system after a fresh installation.

    I wrote a script that presents all the groups in a list. similar to Tech291083's list . I have the list in a function so that I can call or skip the function. Within the function I comment out the individual groups that I do not want to install.

    And for bgstack15's list, I do something similar. I have a function that separates out each of my individual programs of importance and does a separate "dnf install run"
    eg.

    The install_individual

    Code:
    ################################################################################################# 
    #                                                                                               #
    #       Install_individual() used to invoke dnf for individual files                            #
    #       loops through the arguments doing one at a time                                         #
    ################################################################################################# 
    function install_individual()
    {
        local gr rc rc1
        gr=$1
        echo -e "\n--------------- install_individual("$1") Starting ------------\n"      | $TEE "$bn"
    
        for var in $gr
        do
          printf "%s\n" "$DNF  -y install "$var""         |$TEE "$bn"
          $DNF  -y install  "$var"  2>&1                    |$TEE "$bn"
          rc=$?
          rc1=$rc
          if [ $rc == 1 ]; then     #treat error 1 as no error#
            rc1=$rc #was rc1=0
          fi
          if [ $rc1 != 0 ]; then
                echo "install_individual: ERROR ERROR with "$var", Non existant?, code $rc"       | $TEE "$bn"
                echo "install_individual: ERROR ERROR with "$var", Non existant?, code $rc"       >> $err
          fi
          printf "%s\n" "Completed "$var" with code $rc"          | $TEE "$bn"
        done
        echo -e "--------------- install_individual("$1") completed -----------\n"        | $TEE "$bn"
        return $rc1
    }
    Code:
    
    function DO_INDIVIDUALS()
    {
        echo "DO_INDIVIDUAL Apps via install_individual()"      | $TEE "$bn"
        install_individual ' alsa-tools* apc* bijiben argbash cabextract calibre'
        install_individual 'checkpolicy cairo-clock chmsee clang* '
        install_individual 'clamav clamav-update clamav-scanner cups* dropbox '
        #
        install_individual  'dconf-editor* dconf-dev* dnfdrag* dnf*'
        install_individual 'ffmpeg* flawfinder genfstab git-all'
        install_individual 'gimp gnome-commander glade gnome-tweak-tool grip gnome-password-generator*'
        install_individual 'grub-customizer gparted gtg gnome-todo gnome-terminal-nautilus'
        install_individual 'gstreamer* gstreamer1-plugins-base gstreamer1-libav'
        install_individual 'gstreamer1-plugins-good gstreamer1-plugins-ugly '
        install_individual 'gstreamer1-plugins-bad-free'
        install_individual 'gstreamer1-plugins-bad-freeworld'
        install_individual 'gstreamer1-plugins-bad-free-extras '
        install_individual 'gnucash hdparm* gvim hddtemp'
        install_individual 'gtk*'
        #
        install_individual 'inkscape inxi k3b* isoimagewriter kcm_systemd lynx.x86_64 '
        install_individual 'libf*'
        install_individual 'libdvdread libdvdnav  hddtemp lm_sensors* less lsdvd'
        #
        #
        install_individual 'meld most postfix pavucontrol pdfmod pdfshuffler p7zip p7zip-plugins qt-creator steam '
        install_individual 'rubygem-asciidoctor.noarch rubygem-asciidoctor-doc.noarch'
        install_individual 'rubygem-asciidoctor-pdf.noarch rubygem-asciidoctor-pdf-doc.noarch'
        install_individual 'system-config-printer screenfetch ShellCheck'
        install_individual 'transmission* tmux unrar vim vlc* wget wireshark'
        install_individual 'xournal yumex* zip '
        printf "%s\n\n"    "END INSTALL_INDIVIDUALSs"                       | $TEE "$bn"
        #
    }
    #
    

    Why do programs individually? If you group pgms as ... " yes | dnf -y install pgm1, pgm2, pgm3..." if there was any problem with one of the pgm's all the programs in that dnf call are skipped over"

    I set my run up at night or when it's lunch hour. I don't hang around to watch as everything is logged.

    $TEE $bn substitutes to tee -a /tmp/logfile. $DNF substitutes to "yes|dnf"

    My update script also installs rpmfusion, gpg keys and even copies over scripts, files programs from my backup to the new system.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. DNF command re-installing same packages
    By tech291083 in forum Using Fedora
    Replies: 7
    Last Post: 18th July 2015, 05:20 AM
  2. Replies: 0
    Last Post: 27th June 2010, 03:49 AM
  3. Replies: 4
    Last Post: 12th December 2009, 05:21 AM
  4. multiple version of packages installed
    By bakwas_internet in forum Using Fedora
    Replies: 1
    Last Post: 21st March 2004, 07:53 AM
  5. Multiple Packages installed - Help
    By jvslice in forum Using Fedora
    Replies: 4
    Last Post: 29th February 2004, 03:41 PM

Posting Permissions

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