I want to install Manjaro on a new PC. My idea is to build an ISO based on my current PC Manjaro install.
Looking at Build Manjaro ISOs with buildiso everything seems straight forward.
I have a couple of queries though:
Will the build command use package files from packages installed on the build system, where available, only downloading what is not local?
What is the significance of packagelist tags? Reading another forum post What is a difference between Full and Minimal installation?, the solution points to the iso profiles repository and states ‘packages with “>” aren’t included in minimal iso’. This suggest that anything with a packagelist tag will not be included if a minimal build is configured. If this is the case what is the significance of having different tags?
Thank you for the suggestion, however my system, after many years since installation has accumulated a few bits of ‘crud’ from trying out and removing packages.
I want a clean install, with a few changes from my current system, copying only config I care about into the ISO.
That should easily be remedied. Remove your orphaned packages with…
sudo pacman -Rns $(pacman -Qdtq)
Be sure to follow the dependency chain. You may need to remove some orphans first before you can remove the others.
As for your home directory, delete the configuration files/folders for the removed packages from ~/.config, ~/.local/share, ~/.local/state and ~/.cache. This is best done from a tty (without sudo) while you are not logged into the GUI environment.
It is, but quite often, we see questions of an XY Problem nature, i.e. the user is asking about how to implement their own perceived solution to or circumvention of a problem they are having, rather than about solving the problem itself. And the way you described your issue certainly suggests that it would indeed be a problem of this nature.
What is the reason you believe creating a new ISO with specific packages, and reinstalling, would be better than clearing out the Orphans, as suggested by @Aragorn?
As things stand this does appear you are trying solve problem Y to work around problem X, which appears to be the real problem… Crud or Orphans taking up space on your system.
This is rather self-explanatory; as I understand it:
The default is to create a Full ISO. However, to instead create a Minimal ISO, one must edit the profile.conf file as indicated (above);
Comment extra="true" = # extra="true"
Uncomment # extra="false" = extra="false"
Once that is done, packages in pkglist on lines starting with > (the packagelist tags) will be excluded from the build, and – as if by magic – one has the makings of a Minimal ISO.
My OP did not state a problem, it asked questions about building an ISO with the Manjaro tools.
I want to build a Manjaro ISO. My reasons are my own and not up for public discourse as to whether attempting such a thing is appropriate for me to do!
I have nothing backwards.
I am fully aware of how to create a full or minimal build, the guide I linked to is clear on how to do this, using either config or cmd line params.
I am talking about the contents of Package-xxx in the iso-profiles.
There are many entries that have a packagelist tag, as described in the iso-profiles Readme.md.
I conveniently posted the full set of tags listed in the Readme in the OP.
I am asking what is the significance of having different tags. As far as I can tell anything with a packagelist tag, irrespective of the actual tag name, is included in a full build, but excluded in a minimal build. If this is the case, why have different tags and not a single tag?
Is it a case that adding -f as a cmd line param includes all packagelist tags, but using config I can fine grain control the build? Does ‘extra=true’ only add packages with the ‘>extra’ tag? Does the config also allow adding a line, just as an example, ‘nonfree_default=true’, which will then pull in anything with the ’ >nonfree_default’ tag?
Mod edit:- Please avoid consecutive posts. Instead, edit your previous post to add additional content, and use @mentions or insert a separator (---) to differentiate responses or subjects.
Paraphrasing: “Why so many tags, is a single tag not sufficient to remove all packages to not be included in a Minimal ISO?”.
I’ll answer with two observations:
The list of packages to exclude has to be maintained somewhere – a pkglist seems convenient for that purpose, whether it be local or externally hosted (the latter, would not be an ideal scenario).
A pkglist file with all exclusions listed gives an opportunity to further customise a build – for example, one may wish a Minimal ISO, but with a custom selection of packages also included – a single catch all packagelist tag would not achieve this.
Though it’s doubtless possible to engineer a single toggle (of sorts), I’m not aware of a functional need for having it, with respect the previous observations.
As I understand it, the -f parameter does just as you surmised – it reads all packagelist tags to discern which not to include in the build – to customise the packages to include in a Minimal ISO, remove the > before the additional packages desired, and save the file. When the -f parameter is used, the pkglist will again be read, complete with the changes you have made.
The process is rather straightforward, but I can appreciate how documentation may sometimes be ambiguous.
Does this help to answer your question?
Is this what you fundamentally wanted to know?
If so, then the topic truly was an “XY Problem” by nature (as previously indicated) – perhaps better to ask something like “Can I add package.xyz or (description here) to a pkglist file?” from the onset.
Unfortunately, I can’t answer that part of your query, however, I’m sure someone else can shed some light.
What are you defining as a pkglist file? Are Packages-Root, Packages-Desktop, Packages-Mhwd and Packages-Live commonly known as pkglist files?
My problem is only trying to understand the Build a Manjaro ISO process in more detail than the very basics the guide gives.
No it was just a question to try and understand why there are separate packagelist tags. It did not in any way intimate that it was my reason for the post.
The guide itself says you can freely add or remove packages from the Packages-Desktop file to customise the ISO build. The other files can also be edited (with the recommendation of copying the files from ‘shared’ to preserve the originals), but the expectation is to leave the ‘base Manjaro system’ lists alone.
I imagine this will be an epic fail, the > appears to specifically indicate a packagelist tag, not that an item is omitted from minimal builds. It is the packagelist tag as a whole that seems to indicate an item is omitted from minimal builds. (Yes I understand it equates to the same thing, but it is best to understand the true details not an incomplete interpretation)
Removing only > would leave tagname packagename in the file. I expect the correct thing to make a package be automatically included in both minimal and full builds would be to remove the whole tag to leave just packagename in the file. However that is an educated guess based on what I have observed.
More questions:
Are packagelist tags only used in the ISO build process?
Are packagelist tags preserved in the built ISO and, for a full build, used be the Calamares installer? Maybe to group items for optional installation?
Can user defined tags be added to the package list files, e.g. >desktop, >laptop, >vm so users can customise further, creating a single build that can be used for desktop, laptops and VMs with different package sets for each environment? Or are the tag names hardcoded with any different tag names causing errors?
I appreciate that, at the most fundamental level, I can just edit the files, removing all packages I don’t want and adding all packages I do want, then making a full build. But I want to understand more about how building works, so I can use the greater power that the build tools seems to provide.
Thanks for the information. I have gone through buildiso.in and util.sh in the repo.
I think I fully understand now the relationships between the various packagelist tags and the relevant profile.conf settings and cmd line params.