You are not logged in.

#1 2020-11-19 16:41:25

jroovy-11904
Member
Registered: 2020-01-01
Posts: 6

exclude packages when creating archiso

hi, i wanted to ask if its possible to not include the "linux" package when creating a custom arch iso

so for example, i replaced linux with linux-lts in the packages.x86_64 file but for some reason when i run mkarchiso the linux package keeps getting included, so now i have two kernels in the live iso when i only need one.

is it possible to exclude the kernel package? i know i can remove the package by adding "pacman -Rdd linux" into the customize_airootfs.sh file but since its getting removed in the future i'd like to know if there's another way.

thanks!

Offline

#2 2020-11-19 17:24:39

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,076
Website

Re: exclude packages when creating archiso

Mod note: Not an installation issue, moving to Apps/DEs.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-11-19 18:57:58

loqs
Member
Registered: 2014-03-06
Posts: 12,094

Re: exclude packages when creating archiso

Did you remove broadcom-wl from packages.x86_64 along with linux?

Offline

#4 2020-11-19 19:42:38

jroovy-11904
Member
Registered: 2020-01-01
Posts: 6

Re: exclude packages when creating archiso

ah, i havent thought of that

Offline

#5 2020-11-19 20:00:37

jroovy-11904
Member
Registered: 2020-01-01
Posts: 6

Re: exclude packages when creating archiso

yup, it worked, thanks!
but my question wasn't fully answered; can i manually exclude packages from being included in the iso without relying on the customize_airootfs.sh script?
for example i want to install gnome desktop but dont want to include gnome-terminal, something like "pacman -S gnome --ignore=gnome-terminal"
how can i achieve this on archiso?

Offline

#6 2020-11-19 20:04:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,638
Website

Re: exclude packages when creating archiso

I'm not sure I follow your last question - you do not run pacman directly to create the iso, you include the packages you want (and exclude the ones you dont) in the package.x86_64 file.  If you don't want gnome-terminal, just don't put it (or anything that depends on it) in the list.

Last edited by Trilby (2020-11-19 20:04:57)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2020-11-19 20:36:42

jroovy-11904
Member
Registered: 2020-01-01
Posts: 6

Re: exclude packages when creating archiso

sorry, i should have been clearer
what i meant was, can i install all packages in the gnome group except gnome-terminal?

usually what i would do is:
1) add gnome group to the packages.x86_64
2) add "pacman -R gnome-terminal" to customize_airootfs.sh

but since customize_airootfs.sh is deprecated i'd have to list every single package in the gnome group except gnome-terminal in the packages.x86_64 file, making the process unnecessarily long.

Offline

#8 2020-11-19 23:23:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,638
Website

Re: exclude packages when creating archiso

Why would in be long?

pacman -Sgq gnome | grep -v terminal >> package.x86_64

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2020-11-20 04:08:51

jroovy-11904
Member
Registered: 2020-01-01
Posts: 6

Re: exclude packages when creating archiso

i honestly didnt know you could do that with pacman

anyway, thanks!

Offline

Board footer

Powered by FluxBB