[opensuse] How do search and install rpm's from the commandline?
I wonder how do search and install rpm's from the commandline? I know I can run yast in curses mode but I am looking for something more basic. In other words what is the openSUSE equivalent for: Debian aptitude search $ (search in package names) apt-cache search $ (search package descriptions) aptitude install $ (install package) Gentoo emerge -s $ (search in package names) emerge -S $ (search package descriptions) emerge $ (install package) -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Aniruddha
I wonder how do search and install rpm's from the commandline? I know I can run yast in curses mode but I am looking for something more basic.
smart apt/apt-get to search only: pin webpin - -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn4472 (GNU/Linux) iD8DBQFHIhXGClSjbQz1U5oRAjiJAJ9ZiPDmC5/xuKaHsrHs90Bm0Hm3QQCeOemH Zm7xw/+t/DCzxSWP1WqtojM= =3yYR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
* Aniruddha
[10-26-07 12:25]: I wonder how do search and install rpm's from the commandline? I know I can run yast in curses mode but I am looking for something more basic.
smart apt/apt-get
And our brand new zypper :O) see http://en.opensuse.org/Zypper It has its flaws (e.g. search is a bit broken now), but gets better and better :O) Jano
to search only: pin webpin
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 18:22 +0200, Aniruddha wrote:
I wonder how do search and install rpm's from the commandline? I know I can run yast in curses mode but I am looking for something more basic.
In other words what is the openSUSE equivalent for:
Debian aptitude search $ (search in package names) apt-cache search $ (search package descriptions) aptitude install $ (install package)
Gentoo emerge -s $ (search in package names) emerge -S $ (search package descriptions) emerge $ (install package)
-- Regards,
Aniruddha
I'm not sure what you mean by 'search' as it could mean many things. Could you explain more indepth on that one? As for installing an rpm package, simply type 'rpm -i (filename.rpm)' Conversely, to uninstall, you would type 'rpm -e (packagename)' -- not the installed file name.
-- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 11:40 -0500, Bryen wrote:
I'm not sure what you mean by 'search' as it could mean many things. Could you explain more indepth on that one?
As for installing an rpm package, simply type 'rpm -i (filename.rpm)'
Conversely, to uninstall, you would type 'rpm -e (packagename)' -- not the installed file name.
-- ---Bryen---
I think you are far to used to openSUSE :p. I mean searching and installing from online repositories. With rpm -i you can only install local rpm's ;) -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 26 Oct 2007, Aniruddha wrote:-
I think you are far to used to openSUSE :p. I mean searching and installing from online repositories. With rpm -i you can only install local rpm's ;)
FSVO local including packages hosted on web and/or FTP servers. You can install packages using RPM by passing a URL(s). RPM will then download the package(s), sort out the correct order of installation, and install them. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys | SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit | RISC OS 3.11 | RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 20:37 +0100, David Bolt wrote:
On Fri, 26 Oct 2007, Aniruddha wrote:-
I think you are far to used to openSUSE :p. I mean searching and installing from online repositories. With rpm -i you can only install local rpm's ;)
FSVO local including packages hosted on web and/or FTP servers. You can install packages using RPM by passing a URL(s). RPM will then download the package(s), sort out the correct order of installation, and install them.
Regards, David Bolt
you mean something like:
rpm -i http://download.opensuse.org/repositories/openSUSE:10.3/standard/ kdebase
This is hardly a working solution when compared to: # zypper in $ # smart install $ Can the rpm system offer something better (similar to above samples)? It would be great if you can define repositories for usage with rpm. -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 27/10/2007, Aniruddha
Can the rpm system offer something better (similar to above samples)? It would be great if you can define repositories for usage with rpm.
RPM is a lower level tool than that, it is more equivalent to dpkg in the debian world. Tools like zypper add the real package management with repositories etc on top of rpm. -- Benjamin Weber -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 27 Oct 2007, Aniruddha wrote:-
On Fri, 2007-10-26 at 20:37 +0100, David Bolt wrote:
FSVO local including packages hosted on web and/or FTP servers. You can install packages using RPM by passing a URL(s). RPM will then download the package(s), sort out the correct order of installation, and install them.
you mean something like:
rpm -i http://download.opensuse.org/repositories/openSUSE:10.3/standard/ kdebase
Almost. You need to specify the actual package name.
This is hardly a working solution when compared to:
# zypper in $ # smart install $
It wasn't intended as a solution to the above. You posted that RPM needs the packages to be local. I posted to correct that and to allow you, and others that may not know about the ability to actually download packages, to learn something new about RPM. Heck, for a few years, and despite reading the RPM man pages several times, I still managed to miss this snippet from the RPM man page: <quote> rpm {-F|--freshen} [install-options] PACKAGE_FILE ... This will upgrade packages, but only if an earlier version currently exists. The PACKAGE_FILE may be specified as an ftp or http URL, in which case the package will be downloaded before being installed. See FTP/HTTP OPTIONS for information on rpm's internal ftp and http client support. </quote> and that was despite the "FTP/HTTP OPTIONS" being in nice bold letters. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys | SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit | RISC OS 3.11 | RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
n Sat, 2007-10-27 at 12:37 +0100, David Bolt wrote:
you mean something like:
rpm -i http://download.opensuse.org/repositories/openSUSE:10.3/standard/ kdebase
Almost. You need to specify the actual package name.
That's what meant with kdebase ;)
This is hardly a working solution when compared to:
# zypper in $ # smart install $
It wasn't intended as a solution to the above. You posted that RPM needs the packages to be local. I posted to correct that and to allow you, and others that may not know about the ability to actually download packages, to learn something new about RPM.
Heck, for a few years, and despite reading the RPM man pages several times, I still managed to miss this snippet from the RPM man page:
<quote> rpm {-F|--freshen} [install-options] PACKAGE_FILE ...
This will upgrade packages, but only if an earlier version currently exists. The PACKAGE_FILE may be specified as an ftp or http URL, in which case the package will be downloaded before being installed. See FTP/HTTP OPTIONS for information on rpm's internal ftp and http client support. </quote>
and that was despite the "FTP/HTTP OPTIONS" being in nice bold letters.
Regards, David Bolt
I definitely learned something new. Thank you for correcting me :) -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
I wonder how do search and install rpm's from the commandline? I know I can run yast in curses mode but I am looking for something more basic.
In other words what is the openSUSE equivalent for:
Debian aptitude search $ (search in package names) zypper search $
apt-cache search $ (search package descriptions) zypper search -d $ (this is currently (in 10.3) broken :O()
aptitude install $ (install package) zypper install $
see http://en.opensuse.org/Zypper and man zypper for more Jano -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 18:46 +0200, Jan Kupec wrote:
Aniruddha wrote:
I wonder how do search and install rpm's from the commandline? I know I can run yast in curses mode but I am looking for something more basic.
In other words what is the openSUSE equivalent for:
Debian aptitude search $ (search in package names) zypper search $
apt-cache search $ (search package descriptions) zypper search -d $ (this is currently (in 10.3) broken :O()
aptitude install $ (install package) zypper install $
see http://en.opensuse.org/Zypper and man zypper for more
Jano
zypper is really impressive! Does this belong to the core of openSUSE? For example when during install I don't select any package for install (including X11, yast2 KDE etc.), can I still rely on zypper?\ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 26/10/2007, Aniruddha
zypper is really impressive! Does this belong to the core of openSUSE? For example when during install I don't select any package for install (including X11, yast2 KDE etc.), can I still rely on zypper?\
Zypper is in the base install, even if yast's software management is not installed zypper will be (in 10.3) -- Benjamin Weber -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 18:33 +0100, Benji Weber wrote:
On 26/10/2007, Aniruddha
wrote: zypper is really impressive! Does this belong to the core of openSUSE? For example when during install I don't select any package for install (including X11, yast2 KDE etc.), can I still rely on zypper?\
Zypper is in the base install, even if yast's software management is not installed zypper will be (in 10.3)
-- Benjamin Weber
That is good news :) -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 18:46 +0200, Jan Kupec wrote:
Aniruddha wrote:
I wonder how do search and install rpm's from the commandline? I know I can run yast in curses mode but I am looking for something more basic.
In other words what is the openSUSE equivalent for:
Debian aptitude search $ (search in package names) zypper search $
apt-cache search $ (search package descriptions) zypper search -d $ (this is currently (in 10.3) broken :O()
aptitude install $ (install package) zypper install $
see http://en.opensuse.org/Zypper and man zypper for more
Jano
How do I update my system using zypper? '# zypper update' yields 'Nothing to do.' while according to the 'openSUSE updater applet' I have over 130 upgradable packages. -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
How do I update my system using zypper? '# zypper update' yields 'Nothing to do.' while according to the 'openSUSE updater applet' I have over 130 upgradable packages.
zypper update package as told 10000 times! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 19:33 +0200, Erik Jakobsen wrote:
Aniruddha wrote:
How do I update my system using zypper? '# zypper update' yields 'Nothing to do.' while according to the 'openSUSE updater applet' I have over 130 upgradable packages.
zypper update package
as told 10000 times!
No way, than you have been sharing the wrong command for 10000 times. It's # zypper update -t package ;) -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2007/10/26, Aniruddha
How do I update my system using zypper? '# zypper update' yields 'Nothing to do.' while according to the 'openSUSE updater applet' I have over 130 upgradable packages. --
Whats the output of #zypper lu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 18:46 +0200, Jan Kupec wrote:
see http://en.opensuse.org/Zypper and man zypper for more
Jano
How do I update my system using zypper? '# zypper update' yields 'Nothing to do.' while according to the 'openSUSE updater applet' I have over 130 upgradable packages. -- Regards,
Aniruddha
Ok learned that '# zypper update -t package' upgrades the entire system :). Unfortunately I immediately run into trouble, anyone know how I should fix this? 2 Problems: Problem: No valid solution found with just resolvables of best architecture. Problem: Cannot install wesnoth-data-base, because it is conflicting with wesnoth-data Problem: No valid solution found with just resolvables of best architecture. With this run only resolvables with the best architecture have been regarded. Regarding all possible resolvables takes time, but can come to a valid result. Solution 1: Make a solver run with ALL possibilities. Regarding all resolvables with a compatible architecture. number, (r)etry or (c)ancel> -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 26 October 2007 10:33:39 am Aniruddha wrote:
On Fri, 2007-10-26 at 18:46 +0200, Jan Kupec wrote:
see http://en.opensuse.org/Zypper and man zypper for more
Jano
How do I update my system using zypper? '# zypper update' yields 'Nothing to do.' while according to the 'openSUSE updater applet' I have over 130 upgradable packages. -- Regards,
Aniruddha
Ok learned that '# zypper update -t package' upgrades the entire system :). Unfortunately I immediately run into trouble, anyone know how I should fix this?
2 Problems: Problem: No valid solution found with just resolvables of best architecture. Problem: Cannot install wesnoth-data-base, because it is conflicting with wesnoth-data
Problem: No valid solution found with just resolvables of best architecture. With this run only resolvables with the best architecture have been regarded. Regarding all possible resolvables takes time, but can come to a valid result. Solution 1: Make a solver run with ALL possibilities. Regarding all resolvables with a compatible architecture. number, (r)etry or (c)ancel>
-- Regards,
Aniruddha
Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette
Also, Just to lock it down to a certain repo you can do: zypper update -t package -r "Repo Name" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 11:17 -0700, Ben Kevan wrote:
Also,
Just to lock it down to a certain repo you can do:
zypper update -t package -r "Repo Name"
I am fiddling with the 'zypper update -t package -r "Repo Name"' I really wonder if there isn't there a simpler way to: 'Make a solver run with ALL possibilities. Regarding all resolvables with a compatible architecture.' -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ben Kevan schrieb:
Also,
Just to lock it down to a certain repo you can do:
zypper update -t package -r "Repo Name" Hi! Is it only on my system, or is it necessary to identify the repository by URL, and not by name?
Oh, I just see, the zypper "Alias" is *not* the yast2 package name ... The alias is initially the URL, unless explicitly specified ... zypper renamerepo http://ftp.skynet.be/pub/packman/suse/10.3/ Packman -> renames "Packman Repository" into alias Packman. Sebastian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 23:09 +0200, Sebastian Brandt wrote:
Ben Kevan schrieb:
Also,
Just to lock it down to a certain repo you can do:
zypper update -t package -r "Repo Name" Hi! Is it only on my system, or is it necessary to identify the repository by URL, and not by name?
Oh, I just see, the zypper "Alias" is *not* the yast2 package name ... The alias is initially the URL, unless explicitly specified ...
zypper renamerepo http://ftp.skynet.be/pub/packman/suse/10.3/ Packman -> renames "Packman Repository" into alias Packman.
Sebastian
Thanks for clarifying that. That's why I was having troubles... ;) -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Is there an advantage of using zypper over using yast2 to install or update? -- Best regards, Dennis J. Tuchler University City, Missouri 63130 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 14:12 -0500, Dennis J. Tuchler wrote:
Is there an advantage of using zypper over using yast2 to install or update?
-- Best regards,
Dennis J. Tuchler University City, Missouri 63130
I prefer the cli above any clunky interface, It's much faster -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 26 October 2007 02:12:24 pm Dennis J. Tuchler wrote:
Is there an advantage of using zypper over using yast2 to install or update?
It is easier to type: zypper up (update) and leave console window on another screen doing refresh, come later, check what has to be changed, and type yes or no. There is no popups during repository refresh phase that make YaST line in task manager blinking, like it has something to say. zypper in (install) is another pair of shoes. YaST is more comfortable, but if you update only one package or one type of packages (KDE or GNOME) than zypper can be placed in some small script that will do it without asking a question. -- Regards, Rajko. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dennis J. Tuchler wrote:
Is there an advantage of using zypper over using yast2 to install or update?
It is just a matter of preference between a grafical UI and a command line UI when it comes to such common tasks. GUI offers some things the CLI can't, e.g. you can easily select packages to install while having their descriptions or available versions and other info at hand). With zypper you need to zypper search, zypper info, zypper search, zypper info, zypper install foo1 foo2, etc... On the other hand CLI offers some things a GUI can't, e.g. if you know what you want to install or remove, or you just want to check if a some package is available zypper is the quickest way. Then there are special use-cases where you e.g. don't have X installed (servers), or you want to write a script for doing some package management. Then it is time for a CLI. Jano -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (12)
-
Aniruddha
-
Ben Kevan
-
Benji Weber
-
Bryen
-
David Bolt
-
Dennis J. Tuchler
-
Erik Jakobsen
-
Gabriel .
-
Jan Kupec
-
Patrick Shanahan
-
Rajko M.
-
Sebastian Brandt