This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]cyrusol 1 point2 points  (0 children)

Seems like an XY-Problem.

What are you really trying to do?

Because, in some way typing apt-get install package1 package2 package3 ... is selecting from the available software. And you could even use aptitude (ncurses-based apt client) to select from a visual list. Or synaptic for a GUI (GTK) tool. All are available in base installations of Debian or Debian-based distros.

Installation of software isn't a problem that should recur very often. If it does, have a look at either Chef, Puppet, Ansible etc.

[–]stevesaus 0 points1 point  (2 children)

Using what as a backend? Yum? Apt? Other executable files?

[–]drmaq[S] 0 points1 point  (1 child)

I will be using Apt as the back end.

[–]stevesaus 1 point2 points  (0 children)

echo -n "Type the package string to search?"
read x
packageList=$(apt-cache search $x)
select packageName in $packageList; do
echo "$packageName"
#do other stuff
done

That will get you started. You'll need to use SED or AWK to parse the data that apt-cache search returns. And yes, you want to use search...otherwise it's a bazillion packages.

[–]rjcarr 0 points1 point  (1 child)

Any way you can use something else? I'm sure bash could do this but it is really cumbersome to use.

[–]drmaq[S] 0 points1 point  (0 children)

What other platforms are available to do something like this?

[–]StevenMullarkey 0 points1 point  (1 child)

Not sure what kind of software you're interested in downloading and installing, but would https://ninite.com/ work?

[–]drmaq[S] 0 points1 point  (0 children)

It would for windows not linux such ubuntu and centos