How to install lots of packages via command line?

Moderator: BarryK

Post Reply
libertas
Posts: 144
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 31 times
Been thanked: 5 times

How to install lots of packages via command line?

Post by libertas »

Hi,

To build software sometimes the requirements mention several packages to be installed.
To do this manually one by one via the graphical tool pkgget is tiresome.

For example, to build the Unicon programming language this is necessary:

Code: Select all

apt install libgl1-mesa-dev libssl-dev libx11-dev libjpeg-dev libpng-dev libglu1-mesa-dev
            libxft-dev libopenal-dev libalut-dev libogg-dev libvorbis-dev unixodbc-dev
	    libfreetype6-dev

Is it possible (and how) to install these packages in one go from the command line or graphically?

Last edited by Flash on Wed Mar 12, 2025 3:18 am, edited 1 time in total.
Reason: Added question mark to subject line
User avatar
BarryK
Posts: 2943
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 158 times
Been thanked: 812 times

Re: How to install lots of package via command line

Post by BarryK »

Sorry, currently there is no way to do that.

Yes, it would be nice to feed in multiple packages on a CLI.

Anyway, it is not something that you have to do often, just once, then compile Unicon.

Thanos
Posts: 120
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 4 times
Been thanked: 18 times

Re: How to install lots of packages via command line?

Post by Thanos »

I installed apt from pkgget, but after I use it to install some software, the system crashed.

I think maybe it is because \bin \sbin \lib aren't directory but symbol link.

libertas
Posts: 144
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 31 times
Been thanked: 5 times

Re: How to install lots of packages via command line?

Post by libertas »

Thanos wrote: Thu Mar 13, 2025 3:38 am

I installed apt from pkgget, but after I use it to install some software, the system crashed.

I think maybe it is because \bin \sbin \lib aren't directory but symbol link.

If you open the pkgget script, there a lot going on, it's nota a simples apt command.

Thanos
Posts: 120
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 4 times
Been thanked: 18 times

Re: How to install lots of packages via command line?

Post by Thanos »

libertas wrote: Thu Mar 13, 2025 10:37 am
Thanos wrote: Thu Mar 13, 2025 3:38 am

I installed apt from pkgget, but after I use it to install some software, the system crashed.

I think maybe it is because \bin \sbin \lib aren't directory but symbol link.

If you open the pkgget script, there a lot going on, it's nota a simples apt command.

I think apt is better because it's simple and fast.

libertas
Posts: 144
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 31 times
Been thanked: 5 times

Re: How to install lots of packages via command line?

Post by libertas »

@Thanos , if you think apt is simple and fast, you haven't seen Alpine's apk, have you?

User avatar
BarryK
Posts: 2943
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 158 times
Been thanked: 812 times

Re: How to install lots of packages via command line?

Post by BarryK »

Stay tuned!

Thanos
Posts: 120
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 4 times
Been thanked: 18 times

Re: How to install lots of packages via command line?

Post by Thanos »

libertas wrote: Sun Mar 16, 2025 12:15 am

@Thanos , if you think apt is simple and fast, you haven't seen Alpine's apk, have you?

I think apt is simple and fast than pkgget only.

User avatar
BarryK
Posts: 2943
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 158 times
Been thanked: 812 times

Re: How to install lots of packages via command line?

Post by BarryK »

Decided, why not do this:

https://bkhome.org/news/202503/neoapt-s ... ility.html

Alright, if you are counting the seconds, it might be slower, and require more button clicks, than the real 'apt', but it works OK.

Post Reply

Return to “EasyOS”