Giter Site home page Giter Site logo

How to update a package? about apt-cyg HOT 3 OPEN

kou1okada avatar kou1okada commented on July 22, 2024
How to update a package?

from apt-cyg.

Comments (3)

kou1okada avatar kou1okada commented on July 22, 2024 10

This question will be resolved with my answer at issue #48.

The latest version of gcc-g++(version 8.3.0-1) is in the [test] section not [curr].
But, I'm sorry, apt-cyg does not support selecting a section for install subcommand, yet.
Thus, you can not install it with apt-cyg directly.

However, you can resolve it with the least cost by using setup subcommand and a few GUI operations.

  1. Run below command:
apt-cyg setup -- -q -B -M -n -x gcc-g++ -P gcc-g++
  1. Click Reinstall and select 8.3.0-1 (Test) from pop up menu.
    image
  2. Click Next button to finish install.

If you want to check the section which packages are belongs, use describe subcommand as following:

$ apt-cyg -u describe gcc-g++
Cache directory is /cygdrive/c/Users/kou/Downloads/cygwin
Mirror is http://ftp.jaist.ac.jp/pub/cygwin
@ gcc-g++
sdesc: "GNU Compiler Collection (C++)"
ldesc: "The GNU Compiler Collection includes front ends for C, C++,
Objective-C, Fortran, Ada, and Go, as well as libraries for these
languages (libstdc++, libgcj,...)."
category: Devel
requires: cygwin gcc-core libgmp10 libiconv2 libintl8 libisl15 libmpc3 libmpfr6 libstdc++6 zlib0
version: 7.4.0-1
install: x86_64/release/gcc/gcc-g++/gcc-g++-7.4.0-1.tar.xz 12405804 7bd7861622c214710da4b3ff3304eb22b8c05c595f343610750a44bf5826ec27a4cd37623cfa20d48f40d07055b1a2e33eb0bab158fecef2e7fce310fb2e29a8
source: x86_64/release/gcc/gcc-7.4.0-1-src.tar.xz 62627316 28c56fb6c6b2b1e2248bac49d5cfa96bc48d9ba7f473e07a54f43e63f3aafeacb6acf6b2a139e9f01926551d4c0fdecae9c46d864599b24b6c0f4763a72321f9
depends2: cygwin, gcc-core, libgmp10, libiconv2, libintl8, libisl15, libmpc3, libmpfr6, libstdc++6, zlib0
[prev]
version: 7.3.0-3
install: x86_64/release/gcc/gcc-g++/gcc-g++-7.3.0-3.tar.xz 12379576 390d58d363c5eef45b796f6a20e784a81700a04b588a7af599fc95cff7fa6d35a99f350fd96c7430e18a5aa0df774fb225bac759958396c2fbe398b09e5d9a90
source: x86_64/release/gcc/gcc-7.3.0-3-src.tar.xz 62487856 cf93db46b32dce73ddc4b44ad253405ebfa16937340f0e59f7f0ddf0e2397faea6092c173d03f53b401d63e34e9a6b8d2f2911013dbb5d6dd146af1e84d61a07
depends2: cygwin, gcc-core, libgmp10, libiconv2, libintl8, libisl15, libmpc3, libmpfr6, libstdc++6, zlib0
[test]
version: 8.3.0-1
install: x86_64/release/gcc/gcc-g++/gcc-g++-8.3.0-1.tar.xz 15720920 902cb94cc224e98fba2b12429d7fc7a36329c139c124300dc730a04307228ef4e2f7f9fa7958ef8ac2ee12a991f5678f36046291c2569b53a91d6b9b02970adc
source: x86_64/release/gcc/gcc-8.3.0-1-src.tar.xz 63717648 d1bd8497bbda3e97413a33e71c3e13ee0c9eff3f610e219b99aac0a97a7a850c6204cd1c8d8579a85ddbfd81a1f20a5dc929dc09ddce5d88130c8d526715ce39
depends2: cygwin, gcc-core, libgmp10, libiconv2, libintl8, libisl15, libmpc3, libmpfr6, libstdc++6, zlib0

from apt-cyg.

evandrocoan avatar evandrocoan commented on July 22, 2024

Thanks for the detailed answer!

from apt-cyg.

charlescanato avatar charlescanato commented on July 22, 2024

Out of curiosity, this is nice when you need to select a specific version, since this is still not supported.

But, when you want to upgrade, isn't it "easier" to just remove and then install the package again?

I'd also love a one-package update feature, but so far, it seems to me that sticking to the command-line is still faster.

from apt-cyg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.