<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8341</bug_id>
          
          <creation_ts>2015-09-20 22:32:35 +0000</creation_ts>
          <short_desc>Allow installation of a specified version of a package (old issue #76)</short_desc>
          <delta_ts>2016-05-23 15:04:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>0.3.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro del Castillo">alejandro.delcastillo</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54319</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2015-09-20 22:32:35 +0000</bug_when>
    <thetext>I would like to switch between released versions of a disto. I install
a version call it Release-1, then switch feeds to point to Release-2 

What steps will reproduce the problem?


&gt;opkg list-upgradable


 and it looks like it is working.


Now when I try it the other way around, Install Release-2 and switch
the feeds to Release-1,

opkg list-upgradable

Lists nothing! yet lsof has changed.

root@TBC:/usr/bin/cctm# opkg list-installed lsof
lsof - 4.83-r2.5

root@TBC:/usr/bin/cctm# opkg list lsof
lsof - 4.83-r1.5 - Lsof is a Unix-specific diagnostic tool. Its name
stands for LiSt Open Files, and it does just that.
lsof - 4.83-r2.5

root@TBC:/usr/bin/cctm# opkg install  lsof
Package lsof (4.83-r2.5) installed in root is up to date. # As
expected

root@TBC:/usr/bin/cctm# opkg install  lsof --force-downgrade
Package lsof (4.83-r2.5) installed in root is up to date. # I had
assumed the --force-downgrade would install

Then

root@TBC:/var/lib/opkg# opkg remove lsof*  --force-depends
Removing package lsof from root...
root@TBC:/var/lib/opkg#
root@TBC:/var/lib/opkg# opkg list-installed lsof
# lsof not installed

Now

root@TBC:/var/lib/opkg# opkg list lsof
lsof - 4.83-r1.5 - Lsof is a Unix-specific diagnostic tool. Its name
stands for LiSt Open Files, and it does just that.

# OK now we have r1.5 of lsof

root@TBC:/var/lib/opkg# opkg install lsof
Installing lsof (4.83-r1.5) to root...
Downloading http://172.25.113.12:8080/feeds/build.r1/armv5te/lsof_4.83-r1.5_armv5te.ipk
Configuring lsof.

# Great this works.
What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?

svn version 609 built with arm-custom-gnueabi-gcc V 4.3.3


Originally reported by Robert.Melchers, Apr 5, 2011
-----------------------------------------------------------------------------
#1 paul.betafive (Sep 28, 2013)
I don&apos;t think &quot;opkg install  lsof --force-downgrade&quot; should automatically perform the downgrade as two versions are available (1.5 from the feed, 2.5 already installed) and there could in theory be more. There should however be a way to specify the desired version on the command line. I&apos;m not sure if there is one, I&apos;ll have to investigate.

#2 paul.betafive (Oct 11, 2014)
 Issue 146  has been merged into this issue.

#3 paul.betafive (Oct 11, 2014)
opkg doesn&apos;t currently allow a desired version to be given on the command line when installing a package. This would be a very useful feature though, especially for package downgrades. This feature will be added after the v0.3.0 release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62382</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-05-23 15:04:14 +0000</bug_when>
    <thetext>Added feature on commit: 9da784d5508157cb327d53eb9abcf54e9926a5a5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>