MSYS2-pacman icon indicating copy to clipboard operation
MSYS2-pacman copied to clipboard

Find and install package in a single command?

Open birgersp opened this issue 6 years ago • 0 comments

Hi,

I'm about to install SDL2 mingw64. To do that I have to type

pacman -S mingw64/mingw-w64-x86_64-SDL2

I'd like to see an easier way of installing this package. For instance, a command that tries to match a search, displays the search result and prompts which package from the search it should install?

Maybe something like this:

$ pacman -Ss 64-SDL2
(1) mingw64/mingw-w64-x86_64-SDL2 2.0.5-2
    A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2) (mingw-w64)
(2) mingw64/mingw-w64-x86_64-SDL2_gfx 1.0.1-2
    SDL graphics drawing primitives and other support functions wrapped up in an addon library for the Simple Direct Media (SDL) cross-platform API layer
Select package(s) to install: 1
Installing ...

Just a thought, I think it would be very neat

birgersp avatar Sep 22 '17 14:09 birgersp