Make sure you have the rpm packages apt, apt-devel (apt version 0.5.4) and the perl module perl-XML-LibXML installed. If you do not have these packages you can download them from the download page of the apt4rpm website or just create them by using the .spec files (see the comments at the top of the .spec files for more information).
rpm -ba apt-cvs.spec
rpm -Uvh apt.rpm apt-devel.rpm
(short form here - use the created filenames with version number). Repeat the same command sequence for the XML-Simple perl module, if needed.
Copy the scripts aptate and aptate-config.pl to your favorite location (/usr/bin/?).
Change the configuration file aptate.conf to your needs. It can be stored in the directories: /etc/apt/ or $HOME/.aptate/.
Aptate.conf holds the information needed to run aptate and is XML formatted, following the rules layed down in aptate.dtd. The information ranges from defining the top directory up to describing a linux distribution.
The configuration file defines a list of sources where RPM packages can be found. Currently only local directories (no prefix) and FTP servers can be used (prefix: "ftp://"). Other protocols should be easy to add. If you have need for them let us know. Again you can find an example in the config directory.
If you changed everything to your needs you can start creating the needed databases by running aptate. Quite some effort have been spend to add error messages - so you should get hints if something goes wrong. Aptate will also create example configuration files for the client machine (sources.list and vendors.list) that need to be copied to the clients config directory /etc/apt/. Example 1 in the Section called Client shows an example of the sources.list file and an example of the vendors.list file is shown in Example 2 in the Section called Client.
The Client requires the packages apt and apt-devel only.
Get the configuration files (sources.list and eventually vendors.list) and install them in /etc/apt. If you want to use authentication with apt - make sure you have all needed GPG/PGP keys installed on the server/client.
To check if your setup is correct, try: apt-get update
This will copy the databases to your local harddisk (if everything is ok) or complain (mainly if sources.list is not correct).
You should check your currently installed packages status with: apt-get check
This will make sure that you have no unresolved dependencies between installed packages. If it complains, that this is not the case try: apt-get -f install
which will install all packages, that are needed by already installed packages.
If all this went ok, try: apt-get -S upgrade
to see if there are any new packages available. The -S argument tells apt-get to simulate the command (nothing will be installed). Instead of the capital "S" the small "s" can used as well, not showing as much information as "S" though.
There is a second mode for upgrade called dist-upgrade In contrast to upgrade this will also install newer packages that require the removal or installation of extra packages.
There is much to tell about apt, how it can be used and how apt can be tuned according your desires. However, this is beyond the scope of this manual. At the apt4rpm website a link called related matrial can be found. The page behind that link holds many references to apt howto's, manuals, etc. This page is worth to be visited, especially when you're having questions, are stuck and the like! Or start reading the apt man pages (man apt-get or apropos apt).
<<< Previous | Home | Next >>> |
Introduction | Up | Crypto |