Grab a copy of Pacman from Pacman Headquarters. Unzip/tar it someplace, cd into the directory and do % source setup.csh or % source setup.sh depending on your shell. cd to a scratch directory somewhere and do % pacman -version to make sure that you have Pacman version 3.0 or greater. You're now ready to use Pacman.
At the user level, Pacman has two main concepts: Packages and Caches.
% pacman -get BU:nEditAssuming that you agree to trust the cache BU (see below), installation may take from a few seconds to a few minutes to finish, depending on your internet connection. If the installation succeeds, you will have nEdit available to you. If the installation fails, you will get an error message. Here we come to an important point about Pacman - what to do if an installation fails:
Notice, also, that you had to indicate that you trusted the cache BU before Pacman would do anything. This is necessary because Pacman is downloading and executing instructions from the cache and executing them. In general, then,
In any case, try the nEdit install and while it's downloading, notice the following points:
% ls o..pacman..o nedit-5.3 setup.csh setup.py setup.sh trusted.cachesBesides the trusted.caches file, Pacman also produces and maintains setup.csh, setup.sh and setup.py. To set up whatever software you have installed, just source setup.csh or setup.sh depending on your shell. In this particular case, source the appropriate setup file and you can then do % nEdit to use the editor. Each installation has at most one set of setup files. Sourcing the appropriate file (from any location) always sets up all of the software contained in your installation. You shouldn't edit these files by hand because they are regenerated by Pacman.
Finally the "o..pacman..o" file let's you know that the current directory contains a Pacman installation. It's actually a directory containing Pacman's internal representation of your environment.
Now let's add some more software to your installation with the following command
% pacman -get BU:Python nEdit Pacman:Pacmanand notice that
% pacman -l [*] Python, in cache [/home/youssef/Pacman/work] [*] PythonDocs, in cache [/home/youssef/Pacman/work] [*] nEdit, in cache [/home/youssef/Pacman/work] [*] Pacman, in cache [/home/youssef/Pacman/work]to see a dependency tree view of the packages in your installation. The boxed character in front of each package indicates it's status. The "[*]" mean that each of the package has successfully installed. A package which can't be intalled on your system is indicated by "[X]" and "[ ]" indicates a package which might install correctly but the installation hasn't been attempted. In general, commands of the form % pacman -l {package 1} {package 2}... let you browse packages in your installation with display options controlled by the -d switch. For example, try
% pacman -d src -l Pythonto list the source code of the Python package and it's dependents. You can also list all the packages in your installation cache in alphabetic order by doing % pacman -lc .. You can use same -l and -lc commands to browse remote caches as well. For example
% pacman -d 2 -l VDT:Condor [ ] Condor, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/] [ ] Condor-Installer, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/] [ ] Condor-Environment, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/]... [ ] Condor-Base, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/]... [ ] VDT-Common, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/]... [ ] VDT-Environment, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/]... [ ] Licenses, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/]... [ ] Condor-Environment, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/] [ ] VDT-Common, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/]... [ ] VDT-Environment, in cache [http://www.cs.wisc.edu/vdt/vdt_cache/]...displays the package Condor from the cache VDT to maximum depth 2, and
% pacman -lc BUlists the contents of the BU cache.
When removing packages, it is important to use the Pacman mechanisms for this rather then just doing % rm -r -f in the installation area. The reason for this is that, in general, Pacman packages may modify files outside of your installation area. To see if this is true, use
% pacman -domainand you will see all parts of your system Pacman has modified or is keeping track of. To remove software correctly, use, for example,
% pacman -removeThis removes all packages from your installation recursively. See % pacman -help for more details.
Finally, when you are done, do
% pacman -remove-allto remove all packages in your installation and remove the installation itself.