Emerge is the front end of the portage,which is Gentoo linux’s package manager.
The program I made is a kind of emulation for using Arch linux’s package manager (which is pacman) in emerge’s command format.
No guarantee for security and stability.
This program just suit arch series distributions.
Just simply run make
to compile the source code.
You can add emerge in your $PATH
,or use ./emerge
for loading program localy.
Remember,install/sync/remove operations need to run as root.
But with deep
option,you must avoid run as root because deep
use yay as final program instead of pacman.
- Install package
emerge <package_name>
‘-a’ for ask,ask before install the package. ‘-v’ for verbose,show the detail of the install process.
- Search package
emerge --search <package_name>
‘-s’ for search.
- Sync repository
emerge --sync
emerge --update
optional add package name for updating the selected pacakge,if package is null,update the system. - Remove package
emerge --deselect <package_name>
temporally set this reflects to remove package without check dependence.emerge --depclean <package_name>
remove packages with dependence check. - additional option
--usepkg
means install package from local arch package.--oneshot
means install package withou dependence check.
Eselect is an utility in gentoo for selecting software versions when multiple versions of software coexist.
Gentoo’s engineering team writes eseselect through bash script, which makes the program simple and easy to expand.
In order to pratice my C++ capacity,I used C + + to imitate it. For the sake of realizing the extended function and reviewing the object-oriented knowledge I learned in college, I used the simple factory in the design pattern and the dynamic class registration.
No guarantee for security and stability.
You should edit the pathname in the program.Because though kernel usually located at /usr/src
,the test file located at somewhere else in this program.
Just simply run make
to compile the source code.
You can add eselect in your $PATH
,or use ./eselect
for loading program localy.
eselect <module> <option>
The available module only have kernel
now.The available option are list
and set
.
Here are some examples:
eselect kernel list
eselect kernel set 2