![]() ![]() So instead of running yum list cl-* you'll be running the command yum list cl-file, if there's a file matching the regex/glob cl-*. In those cases your shell will expand the regex/glob prior to it being presented to YUM. The only caveat you have to be careful with regexes/globs, is if there are files within your shell that are named such that they too would match cl-*. * rpmfusion-nonfree-updates: Ĭl-ppcre.noarch 2.0.3-3.3 home_zhonghuaren Loading mirror speeds from cached hostfile Loaded plugins: fastestmirror, langpacks, refresh-packagekit, tsflags These are the YUM commands like list and install. The regular expressions come into play when you're looking for particular packages. So you generally look for fragments of strings that you want with search. NOTE: The string is technically a glob in the Bash shell. Name and summary matches only, use "search all" for everything. How do I know this? There's a message that tells you this when you use yum search. Policycoreutils-python.x86_64 2.5-17.1.el7 2.7.5-58.el7 4.11.3-25.You generally don't use any regular expressions (globs) when searching with yum search since the command search is already looking for sub-strings within the package names and their summaries. You cannot grep them together like you would with rpm -qa. So for yum list installed you want to grep only the package name or version number. Yum list installed shows you the package name, version number and the repository nickname it was downloaded from in 3 different columns. See : ~]# yum list installed | grep 2.7.5 When you grep from yum list installed you will not get the same format as you would with rpm -qa ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |