apt is an automated package management program developed for Debian Linux which may be used to install, remove and update packages on an RPM based system. It will help you to keep your system up to date easily.
NOTE: The Fedora Legacy apt program has not yet finished QA testing. The instructions for installing it below will not work (or be completed) until it has passed the QA testing.
Linux prevents ordinary users from installing, removing, or modifying system software, libraries, and important configuration information. So you must have root access to proceed. You may either login as the root user, or use the su (or sudo) commands to become the root user on the machine.
Note: Be careful when running as root! Be sure to logout of the root account as soon as you are done. Running as root is dangerous, and should only be used when needed. Typos or mistakes can destroy your system or your data, so it is important that you be careful when running as root.
When you are running as root, your prompt will be changed to the # character. In the command examples below, we include this prompt, however you should not type the # character when entering a command!
Besides rpm itself, apt depends on other packages including an updated version of rpm utilities. You must first upgrade these (if you have not already) via the following command:
# rpm -Fvh http://download.fedoralegacy.org/redhat/8.0/legacy-utils/i386/popt-1.7.1-1.8x.i386.rpm \
http://download.fedoralegacy.org/redhat/8.0/legacy-utils/i386/rpm-4.1.1-1.8x.i386.rpm \
http://download.fedoralegacy.org/redhat/8.0/legacy-utils/i386/rpm-build-4.1.1-1.8x.i386.rpm \
http://download.fedoralegacy.org/redhat/8.0/legacy-utils/i386/rpm-devel-4.1.1-1.8x.i386.rpm \
http://download.fedoralegacy.org/redhat/8.0/legacy-utils/i386/rpm-python-4.1.1-1.8x.i386.rpm
To install apt, use the following command as the root user on your machine:
# rpm -ivh http://download.fedoralegacy.org/redhat/8.0/legacy-utils/i386/apt-???.legacy.noarch.rpm
The first time you execute the Fedora Legacy version of apt, it will prompt you to select the Fedora Legacy channels you want to use apt with and one or more mirror sites for them. You should try to select sites which are close to you, provide high bandwidth connections, or meet your site security policy. The official download.fedoralegacy.org site is also an option if you don't know which site to pick. You can find a list of current Fedora Legacy mirrors at http://www.fedoralegacy.org/download/mirrors.php.
To execute apt and configure it, you may use the command:
# apt-get -h
The above command will invoke apt and run the confiration process, then print out the help text for the program for you to read.
Once you have installed the apt package, you should run the following commands as the root user on your system to update your system.
Step 3.1: Resynchronize the package index files from their sources
# apt-get updateStep 3.2: Have apt update your packages
# apt-get upgradeStep 3.3: Optionally have apt clean up downloaded files
# apt-get clean
You may subscribe to the fedora-legacy-announce mailing list to be informed by e-mail when new updates become available. This step is optional, but highly recommended.
The Fedora Legacy project is always in the need of helping hands. Please check the Participate section of our website to see what you can do to help us. As we're a community project, our success will heavily depend on helping hands – possibly you!
If you find a problem with an update published by The Fedora Legacy Project, or in The Fedora Legacy Project documentation, please let us know!
Below is a summary of some of the more advanced features of apt for those who wish to know more. You do not need to know these commands to keep your system updated; they are simply provided for those who want to learn more about using apt to its fullest.