Installing apt4suse
From SUSE Wiki
Type: Howto, Application-Specific (Apt)
Tested Versions: 9.x, 10.x
Written By: Sebiseb
Further Modifications By: Kamatsu
Note From Administrator:: Okay, Daxim has provided some useful information in the /10.2 article - however SUSE Wiki does not break up pages like this. The article for 10.2 will need to be re-integrated, formalized and must follow the Article and Design Guidelines
For openSUSE 10.2, see Installing apt4suse/10.2.
Contents |
Introduction
install-apt4suse is a command line tool that is able to automaticaly download, install and setup apt for you. That is:
- grab the apt rpm packages,
- install them,
- create a safe and decent source.list file,
- install the rpmkey files (which allow apt GPG checking capabilities) or you will later have to use --no-checksig like : "apt --no-checksig update" to ignore the checking of the Keys at any Installations. Remember - only use --no-checksig if you trust the Sources you install from !
Once install-apt4suse has run, apt is ready to use. But don“t forget to proceed to Second Case: Apt is installed to bring your sources.list in a working way !
Requirements
- a ftp connection to the internet without proxy
- installed wget
Install install-apt4suse
You can find the latest rpm here:
http://linux01.gwdg.de/~scorot/install-apt4suse.rpm
Install it by opening a console (like Konsole or xterm) with the following command:
$ su Password: <enter root password> # rpm -Uvh install-apt4suse.rpm
or with YaST by clicking on the file in konqueror.
NOTE: the bugs detected line 144 and line 373 in /usr/bin/install-apt4suse have been fixed in version 0.2.6.
Usage
Now install-apt4suse is installed. Let's use it.
First case: Apt is not installed
If apt is not installed on your system, open up a console and type:
$ su Password: <enter root password> # install-apt4suse
The corresponding packages according to your SuSE version and CPU will be dowloaded and installed. Once the script has finished its job, apt is immediately ready to use. You only have to walk through the Second Case to create a working sources.list !
NOTE: If you are using SuSE 10.1, you will need to fix the /usr/bin/install-apt4suse script as root, changing line 144 to read
if [ "$SUSE_VERSION" = "10.0" ] || [ "$SUSE_VERSION" = "10.1" ]; then
ANOTHER NOTE: I found that the directory might have changed since this tutorial was first written, so in order to get the script working properly you need to change line 150 - or so - from
COMP=suser-jmorris
to read
COMP=base
It will download apt. Unfortunately afterward I had to install it manually changing the active directory to /tmp and use the command rpm -Uvh apt-libs... manually. But that is all it works fine now!
- USER NOTE***:
I found that easier than following the instructions above, just run YAST and install Apt from there.
Second Case: Apt is installed
If apt is already installed, install-apt4suse can help you to manage your sources.list file. This feature is interesting when a new component appears.
The command:
# install-apt4suse --update-srclist
allows you to get the latest component list available. However, as there are some dangerous components (which contain experimental packages) in the full sources.list file available, components that are considered as unsafe are placed in a blacklist and are removed from the sources.list file. The previous sources.list file is saved as sources.list.previous.
The blacklist can be listed with:
$ install-apt4suse --show-blacklist
and can be changed by editing the file /etc/install-apt4suse.conf. Don't change anything in this file if you don't know what you are doing.
Conclusion
Although this tool has been created with the intent to help a SuSE beginner to install apt for SuSE, experienced users also can benefit since this tool can help them to manage their sources.list file (simply edit /etc/install-apt4suse.conf and run install-apt4suse --update-srclist).
More information can be found in the man page install-apt4suse(1) (man install-apt4suse).
Troubleshooting
Many problems have been addressed on the discussion page for this article but many of them have been fixed in install-apt4suse version 0.2.6. Please update install-apt4suse and report bugs if they still exist.
Dynamic MMap Error
if you get something like this error when running "apt update" you may need to increase your cache size.
Reading Package Lists... Error! E: Dynamic MMap ran out of room E: Dynamic MMap ran out of room E: Error occured while processing raptor-devel (NewVersion1) E: Problem with MergeList /var/lib/rpm/Packages E: The package lists or status file could not be parsed or opened.
Try this fix:
sudo pico /etc/apt/apt.conf.d/apt.conf #change or add to the first line or to the top of the page APT::Cache-Limit 20000000;
Categories: Apt | SUSE 9.x | SUSE 10.x | Package Management | Howto

