Page 1 of 1

How to install lots of packages via command line?

Posted: Tue Mar 11, 2025 10:43 pm
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?


Re: How to install lots of package via command line

Posted: Wed Mar 12, 2025 1:26 am
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.


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

Posted: Thu Mar 13, 2025 3:38 am
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.


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

Posted: Thu Mar 13, 2025 10:37 am
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.


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

Posted: Sat Mar 15, 2025 3:46 am
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.


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

Posted: Sun Mar 16, 2025 12:15 am
by libertas

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


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

Posted: Sun Mar 16, 2025 7:29 am
by BarryK

Stay tuned!


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

Posted: Sun Mar 16, 2025 10:51 am
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.


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

Posted: Sun Mar 16, 2025 2:00 pm
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.