Is it possible to get a list of the commands available on a Fedora iso without actually mounting the iso? What I'm looking for is the commands available from the Anaconda menu, not the commands that are installed to the disk.
On Sat, 25 Mar 2023 22:21:22 -0700 Geoffrey Leach geoffleach.gl@gmail.com wrote:
Is it possible to get a list of the commands available on a Fedora iso without actually mounting the iso? What I'm looking for is the commands available from the Anaconda menu, not the commands that are installed to the disk.
Possible? Yes. Easy? No.
I think the definitive way would be to download the src.rpm and unpack it, and look at the code to see what commands are there.
https://koji.fedoraproject.org/koji/packageinfo?packageID=2
You could also ask on the fedora anaconda mailing list. The developers probably have a list of the commands, or know them.
I haven't seen the interface since they switched from the hub and spoke format, but I assume there will be different commands depending on where you are in the install process. So, your question is not well difined. If you are asking the developers, they will probably want to know why you are asking, or what you are looking for in order to narrow it down.
On Sun Mar26'23 08:30:51AM, Community Support for Fedora Users wrote:
From: stan via users users@lists.fedoraproject.org Date: Sun, 26 Mar 2023 08:30:51 -0700 To: users@lists.fedoraproject.org Cc: stan upaitag@zoho.com Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: commands available on bootable iso
On Sat, 25 Mar 2023 22:21:22 -0700 Geoffrey Leach geoffleach.gl@gmail.com wrote:
Is it possible to get a list of the commands available on a Fedora iso without actually mounting the iso? What I'm looking for is the commands available from the Anaconda menu, not the commands that are installed to the disk.
Possible? Yes. Easy? No.
I think the definitive way would be to download the src.rpm and unpack it, and look at the code to see what commands are there.
https://koji.fedoraproject.org/koji/packageinfo?packageID=2
You could also ask on the fedora anaconda mailing list. The developers probably have a list of the commands, or know them.
I haven't seen the interface since they switched from the hub and spoke format, but I assume there will be different commands depending on where you are in the install process. So, your question is not well difined. If you are asking the developers, they will probably want to know why you are asking, or what you are looking for in order to narrow it down.
So, I am not sure what the OP is asking for. But from the kickstart file(s), you can get the list of the rpms in an iso from:
https://pagure.io/fedora-kickstarts/tree/f37
Then you can use:
dnf repoquery -l rpm-name
and get the list of the files in each rpm.
This is a large number of rpms, and even larger number of files to go through.
Best wishes, Ranjan
On Sun, 26 Mar 2023 12:03:53 -0500 Ranjan Maitra mlmaitra@gmx.com wrote:
On Sun Mar26'23 08:30:51AM, Community Support for Fedora Users wrote:
From: stan via users users@lists.fedoraproject.org Date: Sun, 26 Mar 2023 08:30:51 -0700 To: users@lists.fedoraproject.org Cc: stan upaitag@zoho.com Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: commands available on bootable iso
On Sat, 25 Mar 2023 22:21:22 -0700 Geoffrey Leach geoffleach.gl@gmail.com wrote:
Is it possible to get a list of the commands available on a Fedora iso without actually mounting the iso? What I'm looking for is the commands available from the Anaconda menu, not the commands that are installed to the disk.
Possible? Yes. Easy? No.
I think the definitive way would be to download the src.rpm and unpack it, and look at the code to see what commands are there.
https://koji.fedoraproject.org/koji/packageinfo?packageID=2
You could also ask on the fedora anaconda mailing list. The developers probably have a list of the commands, or know them.
I haven't seen the interface since they switched from the hub and spoke format, but I assume there will be different commands depending on where you are in the install process. So, your question is not well difined. If you are asking the developers, they will probably want to know why you are asking, or what you are looking for in order to narrow it down.
So, I am not sure what the OP is asking for. But from the kickstart file(s), you can get the list of the rpms in an iso from:
https://pagure.io/fedora-kickstarts/tree/f37
Then you can use:
dnf repoquery -l rpm-name
and get the list of the files in each rpm.
This is a large number of rpms, and even larger number of files to go through.
Best wishes, Ranjan
Thanks for that. Quite a complex setup, tho not surprising.
What I wanted to be able to do is this. I 've downloaded the fedora 37 iso. I wan to know if it has gparted. How can I answer that without writing it to a thumb drive and booting?
On Sun, Mar 26, 2023 at 2:16 PM Geoffrey Leach geoffleach.gl@gmail.com wrote:
What I wanted to be able to do is this. I 've downloaded the fedora 37 iso. I wan to know if it has gparted. How can I answer that without writing it to a thumb drive and booting?
Assuming the downloaded iso is on or available from an existing Fedora install, just "sudo mount *filename.iso* /mnt", and then explore. Or, use kvm/virtualbox/vmware/whatever and set up a VM with the ISO in the CD drive and no other storage, and boot it that way.
Another option - if the whole point is to have a bootable iso with gparted installed on it, why not just find an iso that you know includes it?
well gparted has live ISOs with Debian and gparted only if its the only tool you want
On 3/26/23, Go Canes letsgonhlcanes0@gmail.com wrote:
On Sun, Mar 26, 2023 at 2:16 PM Geoffrey Leach geoffleach.gl@gmail.com wrote:
What I wanted to be able to do is this. I 've downloaded the fedora 37 iso. I wan to know if it has gparted. How can I answer that without writing it to a thumb drive and booting?
Assuming the downloaded iso is on or available from an existing Fedora install, just "sudo mount *filename.iso* /mnt", and then explore. Or, use kvm/virtualbox/vmware/whatever and set up a VM with the ISO in the CD drive and no other storage, and boot it that way.
Another option - if the whole point is to have a bootable iso with gparted installed on it, why not just find an iso that you know includes it? _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Go Canes wrote:
On Sun, Mar 26, 2023 at 2:16 PM Geoffrey Leach geoffleach.gl@gmail.com wrote:
What I wanted to be able to do is this. I 've downloaded the fedora 37 iso. I wan to know if it has gparted. How can I answer that without writing it to a thumb drive and booting?
Assuming the downloaded iso is on or available from an existing Fedora install, just "sudo mount *filename.iso* /mnt", and then explore.
With the Live images, the OS is in LiveOS/squashfs.img, which itself contains only the rootfs.img. So there's not much exploring to be done there without extracting or mountint the rootfs image.
$ unsquashfs -ll /tmp/iso/LiveOS/squashfs.img drwxrwxr-x root/root 29 2022-11-05 05:17 squashfs-root drwxrwxr-x root/root 33 2022-11-05 05:17 squashfs-root/LiveOS -rw-rw-r-- root/root 8128561152 2022-11-05 05:34 squashfs-root/LiveOS/rootfs.img
Fortunately, the liveimage-mount command from the livcd-tools package can automate the process of mounting the nested images pretty easily:
$ mkdir -p /tmp/liveos && sudo liveimage-mount --chroot Fedora-Workstation-Live-x86_64-37-1.7.iso /tmp/liveos
preparing temporary overlay... b'0+0 records in\n0+0 records out\n0 bytes copied, 0.0001046 s, 0.0 kB/s\n' Starting subshell in a chroot. Changes to '/tmp/Fedora-Workstation-Live-x86_64-37-1.7.iso' filesystems are only temporary. Changes will NOT persist after rebooting. Press Ctrl D to exit... [root@localhost /]# command -v gparted [root@localhost /]#
Or, use kvm/virtualbox/vmware/whatever and set up a VM with the ISO in the CD drive and no other storage, and boot it that way.
This is also a pretty simple method. Booting the image can be done with no setup:
qemu-kvm -m 2048 -vga qxl -cdrom /path/to/fedora.iso
In any case, gparted is not included on the Fedora Workstation Live images. Though it is trivial to install within the live image.
Another option - if the whole point is to have a bootable iso with gparted installed on it, why not just find an iso that you know includes it?
Another good option, if you're looking for something you can toss on a USB drive and have handy.
On Sun, Mar 26, 2023 at 11:15:14AM -0700, Geoffrey Leach wrote:
What I wanted to be able to do is this. I 've downloaded the fedora 37 iso. I wan to know if it has gparted. How can I answer that without writing it to a thumb drive and booting?
sudo mount -v -o loop /path/to/your.iso /mnt/<somedir> find /media/<somedir> -type f -iname "*gparte*"
On 3/26/23 21:26, Todd Zullinger wrote:
With the Live images, the OS is in LiveOS/squashfs.img, which itself contains only the rootfs.img. So there's not much exploring to be done there without extracting or mountint the rootfs image.
With a plain iso it would be as easy as
iso-info -l myiso.iso
but for the livecd you have to go inside the squash fs with
iso-read -i myiso.iso -e /LiveOS/squashfs.img --output-file isotmp; unsquashfs -l isotmp
and it is still not enough since you have a filesystem inside, so
iso-read -i myiso.iso -e /LiveOS/squashfs.img --output-file isotmp unsquashfs isotmp LiveOS/rootfs.img e2ls squashfs-root/LiveOS/rootfs.img:/usr/bin -l
all done in a freshly created dir with some space, which you will remove at the end. Unfortunately this can't be done in a single pipe without intermediate files.
Regards.
On Mon, 27 Mar 2023 16:16:01 +0200 Roberto Ragusa mail@robertoragusa.it wrote:
On 3/26/23 21:26, Todd Zullinger wrote:
With the Live images, the OS is in LiveOS/squashfs.img, which itself contains only the rootfs.img. So there's not much exploring to be done there without extracting or mountint the rootfs image.
With a plain iso it would be as easy as
iso-info -l myiso.iso
but for the livecd you have to go inside the squash fs with
iso-read -i myiso.iso -e /LiveOS/squashfs.img --output-file isotmp; unsquashfs -l isotmp
and it is still not enough since you have a filesystem inside, so
iso-read -i myiso.iso -e /LiveOS/squashfs.img --output-file isotmp unsquashfs isotmp LiveOS/rootfs.img e2ls squashfs-root/LiveOS/rootfs.img:/usr/bin -l
all done in a freshly created dir with some space, which you will remove at the end. Unfortunately this can't be done in a single pipe without intermediate files.
Regards.
Exactly what I needed. Many thanks.