Announcement

Collapse
No announcement yet.

[solved] forcing installation from a specific repository

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [solved] forcing installation from a specific repository

    To force installation of a package version from a specific repository in a regualr debian system, it's easy:

    apt-get install -t repository packagename

    but this doesn't work in k/ubuntu. Here is the problem:

    Code:
    $ apt-cache policy libglapi-mesa
    libglapi-mesa:
     Installed: 7.11.0+git20110328.5d7c27f5-0ubuntu0sarvatt
     Candidate: 7.11.0+git20110328.5d7c27f5-0ubuntu0sarvatt
     Version table:
     *** 7.11.0+git20110328.5d7c27f5-0ubuntu0sarvatt 0
        100 /var/lib/dpkg/status
       7.11-0ubuntu4 0
        500 [url]http://us.archive.ubuntu.com/ubuntu/[/url] precise/main amd64 Packages
    I need to install the 7.11-0ubuntu4 version. Is there a simple way to force installation of that from the command line? By simple, I mean not having to sort through all the repositories to find the one that is downloading the undesired version & rub it out.
    We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

    #2
    Re: forcing installation from a specific repository

    I need to install the 7.11-0ubuntu4 version. Is there a simple way to force installation of that from the command line?
    Forcing version, man apt-get /1/.
    Code:
    install
    
          A specific version of a package can be selected for installation by following the package name with
          an equals and the version of the package to select. This will cause that version to be located and
          selected for install.
    Code:
    apt-get install package name=[version]
    Same thing with the aptitude /1/.

    man aptitude
    Code:
    install
    
          To select a particular version of the package, append “=<version>” to the package name: for
          instance, “aptitude install apt=0.3.1”...

    Links

    1. http://manpages.ubuntu.com/
    Have you tried ?

    - How to Ask a Question on the Internet and Get It Answered
    - How To Ask Questions The Smart Way

    Comment


      #3
      Re: forcing installation from a specific repository

      Yeah, I thought it would be simple.

      apt-get install package name=[version]
      Fortunately I also added the --dry-run option, as it threatened to remove most of my system. Oh well. Have to wait for the rest of the system to catch up.
      We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

      Comment

      Working...
      X