From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7A809E00D14; Fri, 10 Nov 2017 02:50:47 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (zoran.stojsavljevic[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.128.176 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 63D39E00C59 for ; Fri, 10 Nov 2017 02:50:45 -0800 (PST) Received: by mail-wr0-f176.google.com with SMTP id u97so8249221wrc.1 for ; Fri, 10 Nov 2017 02:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MMck8VgnMTLOG5ag3uvZtKjNBxWVFLtwG9ThMgWaPvA=; b=g+K84vnOL+KFm4ARWjav1FSJL4l0w1G7Iq/6AUmu14kJroAXWa4s1iWcl9DW1BFQSO ao26KdcLcEpKz6goy5H5HT6dKcYfUkvQ5ZJAuRHkAKrcz3Izy0LIo0tu/jxC12eFGq2a ieB0V/NgjbpIbhwKLjkq7EQvWdLABAQ+PxtWEKF6Q9LYniMhabadUrDLG3o080m63IQz wIp6UqZ2PoiZ0eZPf9Woi7IKUGWUSHUckA/CnnpfuGoVfSzxi2ovAbUxnR0wKpfua2Z8 ExeZH/VYDmdjXjyxj6YN+SHSekFfPeCVsYaUVmARQBnI2CWAJfh4vnvEkTMEar0f6UIa 2snw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MMck8VgnMTLOG5ag3uvZtKjNBxWVFLtwG9ThMgWaPvA=; b=oe6U3GoQFWkXSKAONeyJN/94YgDfaK2D0g6JyaKiI+Q5rglSnfck1xBamWU7qUgRnp 0NMFl/ke25TBmiuTlfhDnYi42ZGekUjlyWP4LWJ8ldjtK5cFidyM+whC9oEv97t4Cfc5 XGjzBfu3hfPMvVNyxi7j8Mhrb/xiA8bHMYFVochrS1TILyBS8i2UYFEYizz803NmWoCV Jgzsw/n+QFjzaogTiT9yhmfgmjJ0PUbGZqWUoIBX/Y5Gu7x0/si8kxcDEJlZg0JGEflG NCppd98x6LxkA0GW/pHHKCnpkxN0Xf3XsWHCbaDAlS2mAr37XoU+SiCZ+EpqrphU4+tp 1z2Q== X-Gm-Message-State: AJaThX5OC4BpIwPmYnKuIpw2cbqV948vmbZMN+euEXt8RZwnswcRxI7T F1PNi4nzdY70Tyg/NGM3Rmf2de8VrgqKxEhIyQ4= X-Google-Smtp-Source: ABhQp+SyqtVxl6IHhV8PTCIDMGKOtXrxzPbwvAVuS64z8StS1WYmL5MwVIictc06D/SVyF6VcUl30fHRld6wnuW02Sg= X-Received: by 10.223.170.67 with SMTP id q3mr2743564wrd.193.1510311044453; Fri, 10 Nov 2017 02:50:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.67.131 with HTTP; Fri, 10 Nov 2017 02:50:43 -0800 (PST) In-Reply-To: References: From: Zoran Stojsavljevic Date: Fri, 10 Nov 2017 11:50:43 +0100 Message-ID: To: Ran Shalit Cc: "yocto@yoctoproject.org" Subject: Re: apt-get X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2017 10:50:47 -0000 Content-Type: multipart/alternative; boundary="94eb2c1cc5c84e18f6055d9eb1f1" --94eb2c1cc5c84e18f6055d9eb1f1 Content-Type: text/plain; charset="UTF-8" > I've added in local.conf both: > PACKAGE_CLASSES = "package_rpm" > IMAGE_FEATURES += "package-management" I have the following in my poky x86-64 build. in .../poky/build/local.conf: PACKAGE_CLASSES ?= "package_rpm" EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management" Should I add the line: IMAGE_FEATURES += "package-management"? (extras: I do have dnf on my qemux86-64 target, since I am using master branch/master head - target indeed does respond correctly to my which dnf query (as /usr/bin/dnf). I don't think so, but I would like to know the logic/reasoning/mechanism behind these two variables: EXTRA_IMAGE_FEATURES and IMAGE_FEATURES (I hope other people would like to know to)?! Thank you, Zoran On Thu, Nov 9, 2017 at 3:56 PM, Ran Shalit wrote: > I've added in local.conf both: > PACKAGE_CLASSES = "package_rpm" > IMAGE_FEATURES += "package-management" > > Yet, I don't have yum command, only rpm command. > > Regards, > Ran > > On Thu, Nov 9, 2017 at 1:25 PM, Burton, Ross > wrote: > > (adding yocto@ back to CC) > > > > I don't know where you saw that but that is very wrong. > > > > Set PACKAGE_CLASSES to the package manager that you want to use. If you > > want to use opkg, then PACKAGE_CLASSES should be package_ipk (historical > > naming). If you want opkg to be present in the images ensure > IMAGE_FEATURES > > contains package-management. > > > > PACKAGE_CLASSES controls what package formats are generated, and multiple > > are supported for flexibility and testing purposes. For real world use > > there's no need to have more than one. The first entry is the package > type > > that is actually used in the rootfs generation. > > > > package-management needs to be in IMAGE_FEATURES to both get the tools > > installed (opkg in your case, apt-get for dpkg, yum for rpm) and to keep > the > > package management database on the disk. By removing package-management > > from IMAGE_FEATURES all traces of the package manager will be removed > from > > the rootfs, which is useful if you don't want to support on-target use of > > the package manager. > > > > Ross > > > > On 9 November 2017 at 06:45, Ran Shalit wrote: > >> > >> Hi, > >> > >> We also consider using opkg. > >> > >> Now, I have some confusion as to how to install opkg. > >> I see in some documentation that it should be installed as following: > >> > >> PACKAGE_CLASSES ?= "package_rpm package_ipk" > >> IMAGE_INSTALL_append = " opkg " > >> > >> Does it mean there are 2 package managers active ? > >> How can we know which of them is active ? > >> > >> > >> If "?=" means that it shall be defined only if not defined previously, > >> so if it is already defined as package_rpm , it might not install > >> package_ipk? > >> Doesn't it mean that "opkg" might be installed without the required > >> package_ipk ? > >> > >> Thank you, > >> Ran > >> > >> On Wed, Nov 8, 2017 at 9:26 PM, Burton, Ross > >> wrote: > >> > Set PACKAGE_CLASSES to package_deb, and then ensure IMAGE_FEATURES > >> > includes > >> > package-management. > >> > > >> > Ross > >> > > >> > On 8 November 2017 at 19:16, Ran Shalit wrote: > >> >> > >> >> Hello, > >> >> > >> >> Is there a way to add "apt-get" command (and package manager) in > yocto > >> >> ? > >> >> > >> >> Thank you, > >> >> Ran > >> >> -- > >> >> _______________________________________________ > >> >> yocto mailing list > >> >> yocto@yoctoproject.org > >> >> https://lists.yoctoproject.org/listinfo/yocto > >> > > >> > > > > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > --94eb2c1cc5c84e18f6055d9eb1f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> I've added in lo= cal.conf both:
> PACKAGE_CLASSES =3D "package_rpm"
> IMAGE_FEATURES = +=3D "package-management"

I have the following in my poky x86-64 build. in .../poky/b= uild/local.conf:
PAC= KAGE_CLASSES ?=3D "package_rpm"
EXTRA_IMAGE_FEATURES ?=3D "debug-tweaks package-manag= ement"
Should I add the line:= =C2=A0IMAGE_FEATURES +=3D "pac= kage-management"?
(extras: I do have dnf= on my qemux86-64 target, since I am using master branch/master head - target indeed does respond correctly to= my which dnf query (as /usr/bin/dnf).

I don&= #39;t think so, but I would like to know the logic/reasoning/mechanism behi= nd these two variables:=C2=A0EXTRA_= IMAGE_FEATURES and=C2=A0IMAGE_FEATU= RES=C2=A0(I hope other people would= like to know to)?!

<= /span>
Thank you,
Zoran

On Thu, Nov 9, 2017 at 3:56 PM, = Ran Shalit <ranshalit@gmail.com> wrote:
I've added in local.conf both:
PACKAGE_CLASSES =3D "package_rpm"
IMAGE_FEATURES +=3D "package-management"

Yet, I don't have yum command, only rpm command.

Regards,
Ran

On Thu, Nov 9, 2017 at 1:25 PM, Burton, Ross <ross.burton@intel.com> wrote:
> (adding yocto@ back to CC)
>
> I don't know where you saw that but that is very wrong.
>
> Set PACKAGE_CLASSES to the package manager that you want to use.=C2=A0= If you
> want to use opkg, then PACKAGE_CLASSES should be package_ipk (historic= al
> naming).=C2=A0 If you want opkg to be present in the images ensure IMA= GE_FEATURES
> contains package-management.
>
> PACKAGE_CLASSES controls what package formats are generated, and multi= ple
> are supported for flexibility and testing purposes.=C2=A0 For real wor= ld use
> there's no need to have more than one.=C2=A0 The first entry is th= e package type
> that is actually used in the rootfs generation.
>
> package-management needs to be in IMAGE_FEATURES to both get the tools=
> installed (opkg in your case, apt-get for dpkg, yum for rpm) and to ke= ep the
> package management database on the disk.=C2=A0 By removing package-man= agement
> from IMAGE_FEATURES all traces of the package manager will be removed = from
> the rootfs, which is useful if you don't want to support on-target= use of
> the package manager.
>
> Ross
>
> On 9 November 2017 at 06:45, Ran Shalit <ranshalit@gmail.com> wrote:
>>
>> Hi,
>>
>> We also consider using opkg.
>>
>> Now, I have some confusion as to how to install opkg.
>> I see in some documentation that it should be installed as followi= ng:
>>
>> PACKAGE_CLASSES ?=3D "package_rpm package_ipk"
>> IMAGE_INSTALL_append =3D " opkg "
>>
>> Does it mean there are 2 package managers active ?
>> How can we know which of them is active ?
>>
>>
>> If "?=3D" means that it shall be defined only if not def= ined previously,
>> so if it is already defined as=C2=A0 package_rpm , it might not in= stall
>> package_ipk?
>> Doesn't it mean that "opkg" might be installed witho= ut the required
>> package_ipk ?
>>
>> Thank you,
>> Ran
>>
>> On Wed, Nov 8, 2017 at 9:26 PM, Burton, Ross <ross.burton@intel.com>
>> wrote:
>> > Set PACKAGE_CLASSES to package_deb, and then ensure IMAGE_FEA= TURES
>> > includes
>> > package-management.
>> >
>> > Ross
>> >
>> > On 8 November 2017 at 19:16, Ran Shalit <ranshalit@gmail.com> wrote:
>> >>
>> >> Hello,
>> >>
>> >> Is there a way to add "apt-get" command (and pa= ckage manager) in yocto
>> >> ?
>> >>
>> >> Thank you,
>> >> Ran
>> >> --
>> >> _______________________________________________
>> >> yocto mailing list
>> >> yocto@yoctoproj= ect.org
>> >> https://lists.yoctoproject.org/l= istinfo/yocto
>> >
>> >
>
>
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto<= br>

--94eb2c1cc5c84e18f6055d9eb1f1--