DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 47U4PiQC3661773 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=sP+HdfqX X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C7DC3850218 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1724991942; bh=K0/KJaUdZOBnQ//1+XqMfORfgiCWubSGdmFbojZFesk=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=sP+HdfqXysiZjH+aLwfkFHC/qFDZLcrC3q4mtm6KSNXgnGEfG0wBg2NzZ4BwBVC1q lQ/tH7ZTdjGxGrxrNdl78eePhCGca90YhkTforOS4xKfixnggjtVb+PFeexhNbZo1N pPae+zd3NLlpZHDEvwyHperWYIryQgulbZ/C7yFQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A42A53858408 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A42A53858408 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724991889; cv=none; b=vo2+/4kYzodwu7cghdd+xq/3OpORdSwudRWZeEMn3rSnTL9IpXIi9aRgJJMwNmXzjJVAn2nW2feeK7+2ITmyF8a2gRCj1YpJ7J6x98lRSkPVDq0OdM5Ae8qph8ln6Cj80hD6N6PR8fWPbAvTQxu/7B98Lybm/hzxI7rEnmYiFpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724991889; c=relaxed/simple; bh=l3xSevobBjrgUHN40AwhTVX4n5AQ7q5MMx9WjOVoIsY=; h=DKIM-Signature:Date:To:From:Subject:Message-ID:MIME-Version; b=CJeMmfgo8M8GCGTXFaSLInzJ0sEBbj8vCqBx/UcpFYI+nGHi7PsfashgkYtPdrmWTHQ5RMGYhC8xlnhEA+2tSTcsCJxhjOOm/ioAw17bPMZ0szXAXyf1aUC10rhpIa9kLwebvJPndWGAWGFWjjKg1fW6Nt0PhrLW4yOJxdcqKTk= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Fri, 30 Aug 2024 04:24:42 +0000 To: "cygwin AT cygwin DOT com" Subject: this might help if it is actually broken in the meantime (from chatgpt) Message-ID: Feedback-ID: 65268012:user:proton X-Pm-Message-ID: 075665889e667675006dd7f73556f8ab66c4b63c MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Jim McNamara via Cygwin Reply-To: Jim McNamara Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 47U4PiQC3661773 Method 3: Edit the setup.ini File Manually Download the Latest Cygwin Setup Files: Obtain the setup.ini file from the Cygwin repository or mirror. Edit setup.ini: Open setup.ini in a text editor and manually ensure that the package version you want to keep is correctly listed and not marked for update. Run Cygwin Setup: Use the modified setup.ini to install or update packages according to your requirements. Example Workflow Using apt-cyg and Cygwin Setup Here is a step-by-step approach to managing packages with apt-cyg: Install apt-cyg: bash Copy code wget https://github.com/apt-cyg/apt-cyg/raw/master/apt-cyg install apt-cyg /bin Check Installed Packages: bash Copy code apt-cyg list Avoid Upgrades: Avoid running apt-cyg update and apt-cyg upgrade if you want to maintain current versions. Use Cygwin Setup for Pinning: Run the setup executable, select the "Keep" option for the packages you want to prevent from upgrading, and reconfigure Cygwin as needed. Summary Direct Pinning: apt-cyg does not directly support version pinning. Workaround: Use the Cygwin setup tool to select "Keep" for specific packages to prevent them from being upgraded. Manual Management: Avoid running apt-cyg upgrade commands to maintain current package versions. While apt-cyg simplifies package management, leveraging Cygwin's setup tool and manual methods are necessary to effectively control package versions and prevent unwanted updates. You said: how to install with apt-cyg and how to avoid upgrade with apt-cyg ChatGPT said: ChatGPT apt-cyg is a command-line package manager for Cygwin that simplifies the process of installing, updating, and removing packages. However, it does not directly support pinning or holding packages to prevent them from being upgraded, similar to apt-mark hold in Debian-based systems. Here’s a guide on how to use apt-cyg to install packages and avoid upgrades: Installing Packages with apt-cyg Install apt-cyg: First, you need to install apt-cyg if you haven't already: bash Copy code wget https://github.com/apt-cyg/apt-cyg/raw/master/apt-cyg install apt-cyg /bin Update Package List: Before installing, update the package list to ensure you have the latest package information: bash Copy code apt-cyg update Search for Packages: If you are unsure of the exact package name, you can search for it: bash Copy code apt-cyg search package-name Install a Package: Install a package using the install command. For example, to install wget: bash Copy code apt-cyg install wget Avoiding Package Upgrades with apt-cyg apt-cyg does not have a direct mechanism to prevent specific packages from being upgraded. Here’s how you can manage this situation: Method 1: Avoid Running Upgrade Commands Avoid Upgrade Command: Simply avoid using the apt-cyg upgrade command, which updates all installed packages to the latest versions. If you don’t run this command, your installed packages will not be updated. bash Copy code apt-cyg upgrade Manually Manage Updates: If you need to update other packages but want to avoid updating specific ones, you’ll need to manually handle package management. Method 2: Use Cygwin Setup Tool for Pinning To effectively hold specific package versions, you might need to use the Cygwin setup tool instead of apt-cyg: Download Cygwin Setup: Go to the Cygwin website and download the Cygwin setup executable (setup-x86_64.exe or setup-x86.exe). Run Cygwin Setup: Execute the setup program. Set Packages to "Keep": In the package selection step, locate the packages you want to pin. Set these packages to "Keep" instead of "Default" or "Install." Complete the Installation: Continue with the setup process to apply these changes. The "Keep" option ensures that these packages are not upgraded. Method 3: Manually Prevent Upgrades Use setup.ini for Manual Management: Download or locate the setup.ini file from your Cygwin repository. Edit this file to ensure that the package versions you want to keep are listed as you desire. Run Cygwin Setup with Modified setup.ini: Use the modified setup.ini to run the Cygwin setup and maintain your package versions. Summary Installing Packages: Use apt-cyg install package-name to install packages. Avoiding Upgrades: To prevent upgrades, avoid running apt-cyg upgrade. For more precise control, use the Cygwin setup tool to pin packages by selecting "Keep." Manual Management: Edit the setup.ini file or use Cygwin's setup program for detailed package version management. thanks, jim Sent with Proton Mail secure email. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple