microsoft / microsoft/winget-cli

"winget add -a x64 --scope machine BbtN.FFmpeg.GPL" works; "winget rm --id BtbN.FFmpeg.GPL" says "No installed package found matching input criteria."

Open
#5,102 16 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

Here is an installation and attempted uninstall of a package (BtbN.FFmpeg.GPL). Note that winget claims to have no knowledge of the package it just installed.

ETA: winget rm --name "FFmpeg (GPL static variant, master branch) works as expected, removing the package.

C:\bin\portable> winget install -a x64 --source winget --scope machine BtbN.FFmpeg.GPL
Found FFmpeg (GPL static variant, master branch) [BtbN.FFmpeg.GPL] Version N-118197-gbb85423142-20241231
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-12-31-13-02/ffmpeg-N-118197-gbb85423142-win64-gpl.zip
  ██████████████████████████████   138 MB /  138 MB
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Successfully installed

C:\bin\portable> dir *ffmpeg*

 Volume in drive C is OS           Serial number is b24d:678f
 Directory of  C:\bin\portable\*ffmpeg*

2025-01-01   2:42         <DIR>    BtbN.FFmpeg.GPL_Microsoft.Winget.Source_8wekyb3d8bbwe
                   0 bytes in 0 files and 1 dir
   1 598 145 347 584 bytes free

C:\bin\portable> winget rm ffmpeg
No installed package found matching input criteria.

C:\bin\portable> winget rm --id BtbN.FFmpeg.GPL
No installed package found matching input criteria.
Steps to reproduce

winget install -a x64 --source winget --scope machine BtbN.FFmpeg.GPL

followed by

winget rm --id BtbN.FFmpeg.GPL

Expected behavior

Installation of the requested package, followed by removal of the package.

Actual behavior

Installation happened, removal fails because winget claims that the just-installed package is not installed.

WinGet-2025-01-01-02-49-43.015.log

WinGet-2025-01-01-02-49-17.341.log

Environment
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26100.2605
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0

Winget Directories                 
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       C:/bin/userportable
Portable Package Root              C:/bin/portable
Portable Package Root (x86)        C:/bin/portable
Installer Downloads                C:\dl

Links               
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the install/remove sequence from the issue, then inspect the attached WinGet logs and the install and remove CLI entry points. Done means the package installed with the shown command can be removed successfully with --id BtbN.FFmpeg.GPL, while the existing --name behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.