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

    Installing multiple packages with DNF command

    Hi Friends,

    I have just installed Fedora 29 Workstation 64 bit to a brand new 500 GB HDD as the only OS. Now, I have got 4 questions.

    Question 1:

    I often install a certain bunch of packages (100+) whenever I install a new release of Fedora. I am thinking of installing all these packages with the dnf command as below. Is this possible?

    Code:
    dnf install package1 package2 package3......packagelast
    If the above command does not work, then I will try the following command.

    Code:
    dnf --allowerasing install package1 package2 package3......packagelast
    And if the above 2 commands do not work, then I will try the following command.

    Code:
    dnf --skip-broken install package1 package2 package3......packagelast
    Or is there any better way of installing multiple packages using dnf command?

    Question 2:

    I have tried to change the boot menu display time (GRUB_TIMEOUT=60) from the default 5 seconds to 60 seconds by running the following commands, but I have not been able to achieve that.

    Code:
    [root@localhost john]# nano /etc/default/grub
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/grub2/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-19d06d6946ee44c7a4eb1677916fdfa3
    Found initrd image: /boot/initramfs-0-rescue-19d06d6946ee44c7a4eb1677916fdfa3.img
    done
    [root@localhost john]#
    Code:
    [root@localhost john]# cat /etc/default/grub 
    GRUB_TIMEOUT=60
    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]#
    What do I need to do now?

    Question 3:

    I installed Fedora 29 Workstation 64 bit using the automatic install option and as far as I understand all the packages that I install are going to be saved on the /root partition. Right? If yes, then it is already 45.9% full. So if I need to install more packages in future, I will have to expand the /root partition without losing data/other partitions etc, is it possible to do so? Can any particular partition be expanded or shrunk? If yes, then how?

    Question 4:

    Can Fedora 29 be installed using any other partition style other than LVM2?

    Thanks.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot from 2019-01-10 13-33-24.png 
Views:	14 
Size:	77.3 KB 
ID:	29975  
    Last edited by tech291083; 10th January 2019 at 09:25 AM.
    fedoralinuxcommands.blogspot.com


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

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

    Re: Installing multiple packages with DNF command

    Normally, I install the following groups and individual packages....please ignore the size in MB in brackets against the name of some packages as this my list for Fedora 28, an earlier release, during whose installation I noted down these sizes for my own understanding. Thanks a lot.

    dnf groupinstall "Administration Tools"
    dnf groupinstall "Audio Production"
    dnf groupinstall "Books and Guides"
    dnf groupinstall "C Development Tools and Libraries"
    dnf groupinstall "D Development Tools and Libraries"
    dnf groupinstall "Development Tools"
    dnf groupinstall "Editors"
    dnf groupinstall "LibreOffice"
    dnf groupinstall "Network Servers"
    dnf groupinstall "Office/Productivity"
    dnf groupinstall "RPM Development Tools"
    dnf groupinstall "Security Lab"
    dnf groupinstall "Sound and Video"
    dnf groupinstall "System Tools"
    dnf groupinstall "Text-based Internet"
    ================================================== ================================================== =========================
    abiword (12 MB)
    accrete*
    ack*
    acl
    acpi
    adedu
    aide
    alsa* (72 MB)
    alsamixer
    amarok* (137 MB)
    anjuta (23 MB)
    apache (133 MB)
    ark* (23 MB)
    arora
    arp* (40 MB)
    arp-scan
    arptables
    arpwatch
    ath-info
    attr*
    banshee* (35 MB)
    base*
    basename
    bash
    blender* (107 MB)
    brasero (4.6 MB)
    byzanz
    cclive*
    clam* (172 MB)
    clamtk
    control-center
    cpuid*
    curl* (13 MB)
    dig (231 MB)
    eclipse* (1.1 GB)
    emacs* (217 MB)
    enscript
    fedy (GUI for installing various utilities)
    ffmpeg
    finger
    firefox*
    firebug (Firefox add-on)
    gcal
    gcc*
    gcc kernel-devel
    gconf-editor
    geany (8 MB)
    gedit
    ghostscript
    gimp* (540 MB)
    gnome-* (342 MB)
    gnome-packagekit
    gnome-shell
    gnome-shell-extension*
    gnome-tweak-tool
    gparted
    gscan2pdf (for scanning)
    gthumb
    guake
    gwget
    hdparm
    handbrake
    host
    htop
    hwloc
    hw*
    imap*
    inkscape (24 MB)
    inxi
    iptables
    k3b (16 MB)
    k9copy
    kate*
    kchmviewer
    kdevelop (20 MB)
    krename
    ksensors
    ktorrent (6.3 MB)
    libdvd* (Necessary add-on to play media files)
    links
    live*
    liveusb-creator
    lshw* (lshw-gui)
    lvm*
    lynx
    mariadb-server
    mariadb*
    mbox2eml*
    *mtp* (to connect mobile phones)
    mutt
    mysql* (16 MB)
    nail
    netbeans*
    nethogs
    nslookup
    nspr*
    pandoc* (23 MB)
    *2pdf*
    *pdf* (230 MB)
    pdftk (for merging pdf files)
    pdfunite (for merging pdf files)
    perl*
    phatch
    php* (dnf --skip-broken install php*) (133 MB)
    php php-cli php-mysql
    php php-cli php-mysql mysql mysql-server httpd
    ping
    poppler-utils* (for merging pdf files, includes pdfunite)
    poppler*
    ps2pdf
    python* (dnf --skip-broken install python*) (2.3 GB)
    recordmydesktop
    regionset (Necessary add-on to play media files)
    rsyslog*
    ruby* (dnf --skip-broken install ruby*)
    *script*
    simple-scan (for scanning)
    *smart*
    smartmontools
    synaptic
    *system* (269 MB)
    system-config (14 MB)
    telnet
    terminator (2.3 MB)
    thunar
    thunderbird* (80 MB)
    traceroute
    tuxcut (2.1 MB)
    unrar
    *usb*
    unoconv
    vi
    vim* (361 MB)
    vlc* (19 MB)
    whois
    wine* (286 MB)
    xfburn
    x86info
    youtube*
    youtube-dl*
    yum*
    yumex
    fedoralinuxcommands.blogspot.com


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

  3. #3
    Join Date
    Dec 2017
    Location
    USA
    Posts
    64
    Windows 7 Firefox 64.0

    Re: Installing multiple packages with DNF command

    1. My preferred method of installing a set of packages is to do exactly what you are asking. My input is usually a text file, with one package per line (although space separated would be sufficient).
    Code:
    dnf -y install $( cat ~/.install1.txt )
    Observe that I did not use quote marks around the shell expansion. If this statement had quotes, the evaluated command would look like: dnf -y install "yum* vi thunar" which would be interpreted as a single package name which of course does not exist.

    2. It sounds like you did it right. Without my fedora system in front of me right now, the output file also sounds good. I suppose you could always manually check /boot/grub2/grub.cfg and check around for any timeout statements and see if the number is actually correct.

    For more grub troubleshooting, the file /boot/grub2/grubenv is some derived file that you can view the contents of with
    Code:
    grub2-editenv - list
    I've had to troubleshoot the saved_entry value for some funky driver installs. The --help option should explain how to set any values you need, if timeout is even a variable to use here. it's interesting to note that these are internal vars and not env vars the way the /etc/default/grub file uses.

    3. You keep using the word partition. Your screenshot shows /dev/fedora/root, which is usually a device mapper mapping to logical volumes which can also be referenced as /dev/mapper/fedora-root. Therefore, I strongly suspect you are using logical volumes (which leads to your next question I realize) and not mere partitions. A full explanation of the differences is beyond the scope I've got time for. Perhaps you were just rounding your terminology in which case I'm sorry for insulting your intelligence and choice of vocabulary.

    So, about your logical volume (lv) for the /root mount point, yes, if you completely fill it up, you would need to consider expanding the logical volume and the filesystem. Is it possible to do so without affecting other logical volumes on the same volume group? If your volume group has free space, then yes. (sudo vgdisplay fedora)
    If you have to shrink another logical volume, yes that's technically possible but shrinking the filesystem (on an lv or anywhere) is usually a pain and people try to avoid it. You would need to shrink the fs before the lv. And some filesystems (xfs) don't even support shrinking a filesystem. But I think ext4 supports it but I've never tried.

    For expanding an lv, once you have the free physical extents (PEs from vgdisplay), you can use:
    /code]lvextend -L '+10G' -r /dev/mapper/fedora-root[/code]
    The -L or --size value of "+10G" means add 10G, so the plus or minus symbol makes it a relative number.
    The -r resizes the dependent filesystem. The fses I work with (ext4, xfs) tend to be extendable while online! I think in the past you would have to unmount a filesystem before altering it like this.
    If you omit the -r, you can follow up with an resize2fs /dev/mapper/fedora-root if ext2/3/4.

    If you are actually using partitions (e.g., /dev/sda3) then resizing them involves parted or fdisk or gdisk. Or gparted but I haven't used graphical disk tools in a while. Please go find references for all of these tools as needed.

    Specifically in your situation, a 54GB /root sounds like enough for a regular desktop system even with a decent number of applications installed. I briefly read your list of dnf packages and I seriously doubt that would get you close to 54GB used. (Also, with all of those other nice app suites, you find abiword suitable and you have no use for libreoffice?!)

    4. I expect that Fedora 29 can be installed to any partition scheming provided by anaconda, the installer. Off the top of my head, it supports lvm2 and regular partitions. I realize I haven't gotten around much, but all the disks I've ever touched were either regular partitions or lvm2 so I don't even know what else is out there. You could experiment with installing Fedora and customizing the storage configuration.

    Nowadays on my primary workstations, I let it use the default which I think matches what you've got here. Workstations' storage arrangements aren't important enough to me to care how many partitions/lvs they've got. And then other distros have multiple options on their default storage installation pages and there I put everything on a single lv.
    Last edited by bgstack15; 10th January 2019 at 05:16 PM. Reason: provide better link, and more detail

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

    Re: Installing multiple packages with DNF command

    About the grub menu timeout....
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Do you have an MBR or UEFI install of Fedora?
    If you are using MBR, then the above command is correct. If you are using UEFI then the grub.cfg file is going to the wrong place, which would be:
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

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

    Re: Installing multiple packages with DNF command

    bgstack15 and PabloTwo,

    First of all, many thanks for the help provided by both of you so far. It means a lot to me.
    Last edited by tech291083; 11th January 2019 at 03:12 PM.
    fedoralinuxcommands.blogspot.com


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

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

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by PabloTwo
    Do you have an MBR or UEFI install of Fedora?
    I think MBR, but I am a little unsure, can you please have a look at the below URL and let me know? Thanks.

    https://imgur.com/a/UVyzagi

    My motherboard is Gigabyte H61M-S.

    https://www.gigabyte.com/Motherboard...1M-S-rev-10#sp
    Last edited by tech291083; 11th January 2019 at 03:20 PM.
    fedoralinuxcommands.blogspot.com


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

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

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by PabloTwo
    If you are using UEFI then the grub.cfg file is going to the wrong place, which would be:
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    I can't find grub.cfg file, please check the screen-shot at the below URL and guide me, thanks

    https://imgur.com/a/QILkI8n

    Code:
    [root@localhost john]# cat /boot/efi/EFI/fedora/grub
    grubenv       grubia32.efi  grubx64.efi   
    [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]#
    fedoralinuxcommands.blogspot.com


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

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

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by PabloTwo
    About the grub menu timeout....
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Do you have an MBR or UEFI install of Fedora?
    If you are using MBR, then the above command is correct. If you are using UEFI then the grub.cfg file is going to the wrong place, which would be:
    Code:
    [root@localhost john]# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    OK, I have just tried what you had suggested......

    Code:
    [root@localhost john]# cat /etc/default/grub
    GRUB_TIMEOUT=60
    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]#
    fedoralinuxcommands.blogspot.com


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

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

    Re: Installing multiple packages with DNF command

    Yes, your system is using MBR. The screenshot clearly shows:

    Partition: Master Boot Record

    And the fact that there is no grub.cfg file in /boot/efi/EFI confirms that. What does the following command report?
    Code:
    $ sudo grep -B3 "set timeout=" /boot/grub2/grub.cfg
    Also, perhaps try using a lower value than "60" in case there is an upper limit to timeout value which might have been exceeded.

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

    Re: Installing multiple packages with DNF command

    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]#
    fedoralinuxcommands.blogspot.com


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

  11. #11
    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=60
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=60
    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 ###
    [root@localhost john]#
    But after all this, no boot menu yet even after a restart, why so? thanks
    fedoralinuxcommands.blogspot.com


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

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

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by PabloTwo
    Yes, your system is using MBR. The screenshot clearly shows:

    Partition: Master Boot Record

    And the fact that there is no grub.cfg file in /boot/efi/EFI confirms that.
    Oh Good! 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

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

    Re: Installing multiple packages with DNF command

    Quote Originally Posted by PabloTwo
    Yes, your system is using MBR. The screenshot clearly shows:

    What does the following command report?

    Code:
    $ sudo grep -B3 "set timeout=" /boot/grub2/grub.cfg
    Code:
    [root@localhost john]# $ sudo grep -B3 "set timeout=" /boot/grub2/grub.cfg
    bash: $: command not found...
    [root@localhost john]#
    OK, thanks
    fedoralinuxcommands.blogspot.com


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

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

    Re: Installing multiple packages with DNF command

    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]#
    fedoralinuxcommands.blogspot.com


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

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

    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]#
    Please review the command I posted again. The target file was /boot/grub2/grub.cfg.
    Also, DO NOT include the "$ sudo" in the command when you are already root.
    And reviewing your earlier post of the contents of the grub.cfg file it appears the timeout is set to zero.
    Last edited by PabloTwo; 11th January 2019 at 04:11 PM.

Page 1 of 3 1 2 3 LastLast

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
  •