Thanks for the answer!
On Sun, Sep 07, 2008 at 11:58:43AM +0200, jdd sur free wrote:
Josef Wolf a écrit :
What is the "official" command line tool to install packages on suse?
I know there are apt, smart, zypper and maybe even more. But I'd like to know which one is the "official" tool that is installed by default on every suse system.
to manage already downloaded package, the basic comand line tool is rpm.
rpm will not download. Maybe yours cannot, but mine does. You need to specify the full path to
On Sun, Sep 7, 2008 at 11:16, Josef Wolf <jw@raven.inka.de> wrote: the rpm you want to query/install/upgrade and it will download what is needed. eg: [work]$ rpm -qip http://download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.0... Name : acetoneiso2 Relocations: (not relocatable) Version : 2.0.2 Vendor: openSUSE Build Service Release : 1.1 Build Date: Tue 22 Jul 2008 22:48:03 BST Install Date: (not installed) Build Host: build13 Group : System/GUI/KDE Source RPM: acetoneiso2-2.0.2-1.1.src.rpm Size : 910840 License: GPL v3 Signature : DSA/SHA1, Tue 22 Jul 2008 22:47:16 BST, Key ID 58d8ff412e1efa87 URL : http://www.acetoneteam.org Summary : A complete software to manage CD/DVD images rich of features Description : A complete software to manage CD/DVD images rich of features. In example it can Mount typical proprietary images formats of the windows world and do plenty of other things. Distribution: KDE:KDE4:Community / openSUSE_11.0_KDE4_Factory_Desktop
but better use yast, it works on console, using ncurse.
yast is not command line (that is, can't be used from scripts)
yast, apt, smart and zypper are able to dl packages from the net, rpm is not
Can I expect smart or zypper to be installed by default on every suse box? Are they "official" package managers? Not smart, but maybe zypper. What you need to do is look into whether there are libraries that provide the functions you need and use those.
you can probably call directly the yast module if what you want is use it from a script (but what do you want to do, in the first place?)
I want to install packages by script. I should have written this in my original mail, sorry. Then if you know their precise location, you can use rpm as the simplest way. You should also look into yum.
ne.. -- Registered Linux User # 125653 (http://counter.li.org) Now accepting personal mail for GMail invites. Clifford Stoll - "The Internet is a telephone system that's gotten uppity." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org