ivan-hc / AM

AppImage package manager to install, update and manage ALL of them, system-wide or locally, thanks to its ever-growing AUR-inspired database listing 2000+ portable apps and programs for GNU/Linux. The first, real centralized repository to manage your AppImages with the ease of APT and the power of PacMan.
https://portable-linux-apps.github.io
GNU General Public License v3.0
495 stars 40 forks source link

Please add categories. You already have many packages. And now there is no way to see, for example, games only #829

Closed vitaly-zdanevich closed 2 months ago

ivan-hc commented 3 months ago

have you tried to run the command am -q game?

You can also check the catalogue https://portable-linux-apps.github.io

vitaly-zdanevich commented 2 months ago

You can also check the catalogue https://portable-linux-apps.github.io

It just a single-level list

image

ivan-hc commented 2 months ago

it is still a work in progress

vitaly-zdanevich commented 2 months ago

Usually every package manager have categories.

Pip apt snap flatpack portage

From the top of my head.

ivan-hc commented 2 months ago

Normally it is enough to use am -q to search something using keywords, and the only category added until now is "appimages", right yesterday https://github.com/ivan-hc/AM/releases/tag/7.5

Now I'm waiting for @Samueru-sama to have an updated list, so I can create more pages for the website, at least.

Al depends on the list of available apps and keywords on it.

Samueru-sama commented 2 months ago

I don't want this feature in AM itself, maybe on the website.

Can you even search for app categories in pacman, dnf, apt, etc? I know in pacman I can search for a package name doing pacman -Ss package which is similar to what we have already in am of am -q package, but nothing close to categories.

And yesterday I was telling Ivan that wouldn't have bothered to add the am -q option, since am -l | grep package would have been enough for me.

ivan-hc commented 2 months ago

Categories have been added to https://portable-linux-apps.github.io/apps.html

The above pages are generated with the script https://github.com/ivan-hc/AM/blob/dev/tools/am2pla-site

In case you have other suggestions for categories to add or think that a keywerd is missing, let me know

This is the piece of function that care about categories that are not AppImage

KEYWORDS="audio game graphic internet office video"
for category in $KEYWORDS; do
if [ "$category" = audio ]; then
    grep -i "$category\|music\|midi\|mp3\|sound" ./"$arch"-apps >> "$arch-$category"
elif [ "$category" = game ]; then
    grep -i "$category\|arcade\|steam\|wine\|strateg" ./"$arch"-apps >> "$arch-$category"
elif [ "$category" = graphic ]; then
    grep -i "$category\|picture\|screensh\|gimp\|photo\|svg\|png\|autocad\|blender\|modeling" ./"$arch"-apps >> "$arch-$category"
elif [ "$category" = internet ]; then
    grep -i "$category\|web browser\|browser web\|firefox\|chrome\|youtube\|torrent\|p2p\|chat\|whatsapp\|mastodon\|telegram\|skype" ./"$arch"-apps >> "$arch-$category"
elif [ "$category" = office ]; then
    grep -i "$category\|document\|book\|pdf\|docx\|reader" ./"$arch"-apps >> "$arch-$category"
elif [ "$category" = video ]; then
    grep -i "$category\|stream\|media player\|film\|movie\|netflix\|youtube" ./"$arch"-apps >> "$arch-$category"
else
    grep -i "$category" ./"$arch"-apps >> "$arch-$category"
fi

about implementing categories in AM, as also @Samueru-sama said, this is not planned.

I hope you like this improvement to the online catalogue.

vitaly-zdanevich commented 2 months ago

Can you even search for app categories in pacman, dnf, apt, etc?

I can in Gentoo:

$ ls /var/db/repos/gentoo/games-strategy/
0ad          colobot-data  dopewars     freecol     hedgewars          ja2-stracciatella-data  liquidwar       metadata.xml  satellite-reign       spaz     war1gus      wesnoth
Manifest.gz  crimson       dunelegacy   freeorion   homm2-demo         julius                  maxr            naev          scorched3d            tornado  wargus       widelands
augustus     darwinia      endless-sky  freesynd    homm2-gold-gog     knights-demo            megaglest       openra        settlers-2-gold-data  ufoai    warmux       xbattleai
colobot      dominions2    freeciv      galaxyhack  ja2-stracciatella  lgeneral                megaglest-data  s25rttr       seven-kingdoms        uqm      warzone2100

and on the web https://packages.gentoo.org/categories/games-strategy

ivan-hc commented 2 months ago

again, you can use keywords in am -q

Anyway, I am working on ne categories to add to the web catalog. This will be a web-catalog only feature.