apt in mandrake? - Help
This is a discussion on apt in mandrake? - Help ; Is there an equivalent to the apt program ( http://apt.freshrpms.net ) for the
Mandrake Linux distribution?...
apt in mandrake?
Is there an equivalent to the apt program (http://apt.freshrpms.net) for the
Mandrake Linux distribution?
Re: apt in mandrake?
On Tue, 9 Nov 2004 23:20:39 GMT, firstname.lastname@example.org
> Is there an equivalent to the apt program (http://apt.freshrpms.net) for the
> Mandrake Linux distribution?
You don't need apt. Mandrake by default already has urpmi, which when
properly setup actually works a little better. It's a more powerful
package handler for rpms than apt.
Some urpmi basics below - as you'll see, it works just like typing
By using Mandrake you have a terrific utility for installing RPMs that
other distros don't: urpmi - the Mandrake package handler. It will
easily and automagically take care of finding, downloading and
installing software and its dependencies. The "Software Installer" in
Mandrake Control Center is a GUI frontend for urpmi, but it's very easy
to use urpmi from the command line. To easily make the best use of
urpmi, whether by the GUI installer or urpmi from the command line,
first go here:
Follow the easy directions to setup your online package sources.
Choose them carefully, staying with sources for your particular
Mandrake version. You'll want to add the main sources for your version,
the Contributors sources, the PLF repositories, and maybe a few others.
Warning: Add the Cooker sources at your own risk. Cooker is beta stuff
still in testing for the next release and may or may not cause you
When you've finished setting up your source mirrors you can start using
the real power of urpmi. You can install/uninstall a package by simply
using the GUI installer, or in a terminal, 'su' to root, then:
# urpmi -v ('-v' for verbose output is optional, but I
like the extra info it provides)
where is normally just the 'simple' version, i.e. using
the email client Mutt for example, instead of:
# urpmi -v mutt-1.4i-4mdk.i586.rpm
# urpmi -v mutt
Then urpmi will automagically go to the 'Net sources you choose, find
and download the latest available Mutt RPM for your version of
Mandrake, grab any other packages needed to resolve all dependencies
and install everything in the correct order. If urpmi can't complete
the install, either because all the required software isn't available
on the source mirrors you choose or possibly some other conflict(s), it
will stop the install process before actual changes are made and give
you some info about the problem.
Similarly, for packages you've downloaded and saved, just navigate to
the directory where you saved them:
# cd /mysaved/rpm/ishere
Then (for this, you may need to use the full packagename):
# urpmi -v
Uninstalling a package is simply 'urpme' instead of 'urpmi'.
Be aware that while using RPMs compiled for other versions of Mandrake
or for other distros sometimes will work fine, they may not and the
possibility for problems exists. So always try to use RPMs for your
distro and version whenever possible, which in the case of Mandrake is
almost always. If you must use a RedHat or other distro RPM, it's best
to try a test install first, as in:
# urpmi -v --test
This does a "dry run" to check if the package(s) can be sucessfully
installed but without actually changing anything on the system. If all
is well, remove the '--test' switch to install normally.
It's important to always install RPMs, not from tarballs, when using
any rpm-based distro like RedHat, Suse or Mandrake. Why? Because if
you always install RPMs, then Mandrake's urpmi (or Suse's YAST, or
whatever) is able to keep track of everything installed on your system
and so keep everything correctly configured - no reinstalling the OS
due to screwed up system files from incorrect or conflicting library
versions, etc. But if you install packages from source tarballs, then
urpmi cannot keep things straight since it has no info about the
installed tarballs or their contents. Obviously, this could easily
lead to trouble.
Sometimes a particular piece or a newer version of software may only be
available as a source tarball. No problem - it's still very easy make
your own RPMs from source with a handy utility called checkinstall,
included on the Mandrake CDs. I won't go into more detail about
checkinstall here. Google for more info about it.
This should be enough to get you going. For more info, open a terminal
and type 'man urpmi" or do some Googling. Lotsa info available. Also
very good help for Mandrake noobs here:
Registered Linux user #266531
Re: apt in mandrake?
urpmi, Mandrake's native package utility, is the direct equivalent. It
resolves dependencies and installs them just like 'apt', but it's based on
RPM (uses RPM packages).
If you want to install deb packages, you can download things like apt-rpm.
> Is there an equivalent to the apt program (http://apt.freshrpms.net) for
> the Mandrake Linux distribution?
Remove '.nospam' from e-mail address to reply by e-mail