UniversalCodeGrep (ucg) is an extremely fast grep-like tool specialized for searching large bodies of source code. It is intended to be largely command-line compatible with Ack, to some extent with ag, and where appropriate with grep. Search patterns are specified as PCRE regexes.
Upstream (which is me):
Installation is a two-step process:
- Enable this COPR repository on your machine
- Install UniversalCodeGrep using your package manager.
1. Enable this COPR repository
Per https://fedorahosted.org/copr/wiki/HowToEnableRepo and the "Quick Enable" box to the right:
sudo dnf copr enable grvs/UniversalCodeGrep
Note for CentOS 7 users
ucgdepends on the
libpcre2in the EPEL 7 repo, which you must also enable. Simply run this as root:
yum install epel-release
2. Install UniversalCodeGrep
Now you can install ucg as you would any other software:
sudo dnf install universalcodegrep
If you have older distribution, you may need to replace
yum in the above. You also must have
yum-plugin-copr installed as appropriate.
If you are upgrading from a previous version of UniversalCodeGrep and dnf tells you "
Dependencies resolved. Nothing to do. Complete!", you may have to give it the "--refresh" option:
sudo dnf --refresh upgrade universalcodegrep
It is unclear at this time why "--refresh" is sometimes necessary.
The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).
* Total number of packages downloaded in the last seven days.