I wanted to see if I could install some software from a repository using the command line. Fedora uses the following command:
yum install packagename
But what do you do when you don’t exactly know the package’s name, perhaps because it has something descriptive appended to the end of the filename?
Well this is what you do:
yum list available | grep emacs | less
Yum lists the available packages, grep searches for the ones containing the word ‘emacs’, and less displays the result in a scrollable viewer on the screen. Marvelous.
Filed under: Bash and its associates, Text processing tools | Leave a Comment
No Responses Yet to “Using pipes for real, and installing software from bash”