RES: [opensuse] How do I install src packages? - finaly solved
Hi. I followed the steps and the command finished without any error, the I thought it had worked. When I took a look at /usr/src/packages/SOURCE I didn't find any files there. I moved back to the command I was using and tried with Dave´s tip and used only the name of the package without the version and it worked -------------- mnsgw:~ # zypper si mariadb Retrieving repository 'openSUSE-Leap-42.3-Update' metadata ...................................[done] Building repository 'openSUSE-Leap-42.3-Update' cache ........................................[done] Reading installed packages... Loading repository data... Resolving package dependencies... The following 35 NEW packages are going to be installed: akonadi-server-sqlite autoconf automake bison cmake gcc gcc-c++ gcc48 gcc48-c++ glibc-devel libaio-devel libasan0 libatomic1 libbz2-devel libevent-devel libitm1 libopenssl-devel libpcrecpp0 libpcreposix0 libstdc++-devel libstdc++48-devel libtool libtsan0 libxml2-devel linux-glibc-devel lzo-devel ncurses-devel pam-devel pcre-devel readline-devel sqlite3 tack tcpd-devel xz-devel zlib-devel The following source package is going to be installed: mariadb 35 new packages to install, 1 source package. Overall download size: 86.0 MiB. Already cached: 0 B. After the operation, additional 201.2 MiB will be used. Continue? [y/n/...? shows all options] (y): ---------- Regards, Carlos.
Hi. It worked :-)
Thank you all and I am sorry for bothering you. What I have done was just what is stated on the OpenSuse documentation @ https://en.opensuse.org/Source_code ...... You can install the source code for a package in your system with:
zypper si <packagename>
Note that you need to add first the source repository. .....
Regards, Carlos.
De: Dave Howorth [mailto:dave@howorth.org.uk] Enviada em: segunda-feira, 8 de janeiro de 2018 14:11 Para: opensuse@opensuse.org Assunto: Re: [opensuse] How do I install src packages?
On Mon, 8 Jan 2018 10:45:39 -0500 Anton Aylward <opensuse@antonaylward.com> wrote:
On 08/01/18 09:51 AM, Carlos Xavier wrote:
Hi.
We need to install the source package of mariadb to recompile it adding some options on it. I have added the source repository with Yast and downloaded the source file, the I try to use zipper to install it this is what I get.
-------------------------------------------------------------------- -------- ---- buildhost:~ # zypper si mariadb-10.0.30-21.1.src.rpm Reading installed packages... Loading repository data... Source package 'mariadb-10.0.30-21.1.src.rpm' not found. Resolving package dependencies...
Nothing to do. -------------------------------------------------------------------- -------- ----
Am I missing something?
It seems that you should just use the name 'mariadb' and let zypper find
the
appropriate source RPM, as Anton did in his alternative syntax below. I don't think there's anything wrong with your si command, though do note that -D means something different to what it does for the install and other commands.
RTFM for 'package type'.
As in zypper install -t srcpackage .....
I get
# zypper install -D -t srcpackage mariadb Loading repository data... Reading installed packages... Resolving package dependencies...
The following source package is going to be installed: mariadb
1 source package to install. Overall download size: 55.3 MiB. Already cached: 0 B. After the operation, additional 60.7 MiB will be used. Continue? [y/n/...? shows all options] (y):
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
cbastos@connection.com.br