Re: ffmpeg unexpectedly uninstalled
> On 4 Jan 2022, at 9:38 am, Ryan Schmidt wrote: > > On Jan 4, 2022, at 02:52, Christopher Jones wrote: > >> Personally, I also occasionally run >> >>> port list requested >> >> to see the list of ports I have actively *requested* to be installed. This >> excludes ports just installed as dependencies of others. > > Note that you should use "port installed requested" rather than "port list > requested" since "port list" will show you what is available whereas "port > installed" will show you what is actually installed. See: > > https://trac.macports.org/wiki/FAQ#portlist > > "port installed" is also considerably faster than "port list”. yeah, I am ware of this option (and port list gives a warning at the start) Oberon ~/Projects/MacPorts/ports > port list requested Warning: The 'list' action only shows the currently available version of each port. To see installed versions, use the 'installed' action. I still use it though as frankly I prefer the formatting of the output it gives, compared to ‘port installed’ Chris smime.p7s Description: S/MIME cryptographic signature
Re: ffmpeg unexpectedly uninstalled
On Jan 4, 2022, at 02:52, Christopher Jones wrote: > Personally, I also occasionally run > >> port list requested > > to see the list of ports I have actively *requested* to be installed. This > excludes ports just installed as dependencies of others. Note that you should use "port installed requested" rather than "port list requested" since "port list" will show you what is available whereas "port installed" will show you what is actually installed. See: https://trac.macports.org/wiki/FAQ#portlist "port installed" is also considerably faster than "port list".
Re: ffmpeg unexpectedly uninstalled
On Jan 4, 2022, at 02:24, Mick wrote: > On Tue, Jan 04, 2022 at 08:56:43AM +0700, Michael Newman via macports-users > wrote: >> I'm using the -f option because I copied it from some recommendation I read >> somewhere. I'm not smart enough to figure things like this out myself so I >> usually rely on what I find by searching. For years I just ran: >> >> sudo port selfupdate >> sudo port upgrade outdated >> >> But then I read somewhere that to remove unneeded junk I should also run: >> >> sudo port -f clean --all all >> sudo port -f uninstall inactive >> sudo port uninstall leaves >> > What I usually do, is: > > sudo port selfupdate > sudo port -u upgrade outdated > > I read quite recently in the port documentation (man port) about the > usage of that "-u" option, which does exactly what you want, that is > removing inactive ports. Note that the "-u" option has two different functions depending on what command you use it with. When used with upgrade (sudo port -u upgrade xxx), -u means uninstall the old version(s) of the port that's being upgraded (xxx). When used with uninstall (sudo port -u uninstall), -u means uninstall *all* inactive ports. I find this double meaning confusing and wish we would remove this second usage, since it can be achieved with the clearer "sudo port uninstall inactive". I proposed this removal ten years ago: https://trac.macports.org/ticket/33933
Re: ffmpeg unexpectedly uninstalled
As others have already commented, the best way to perform regular clean up on your installation is to just run > sudo port reclaim that does a number of tasks, all designed to clean up your installation. Personally, I also occasionally run > port list requested to see the list of ports I have actively *requested* to be installed. This excludes ports just installed as dependencies of others. If there are any in that list I do not really want any longer, I then run > sudo port setunrequested on them. port reclaim will then remove these ports, if they are not required as a dep of some other one. Chris > On 4 Jan 2022, at 8:24 am, Mick wrote: > > On Tue, Jan 04, 2022 at 08:56:43AM +0700, Michael Newman via macports-users > wrote: >> I'm using the -f option because I copied it from some recommendation I read >> somewhere. I'm not smart enough to figure things like this out myself so I >> usually rely on what I find by searching. For years I just ran: >> >> sudo port selfupdate >> sudo port upgrade outdated >> >> But then I read somewhere that to remove unneeded junk I should also run: >> >> sudo port -f clean --all all >> sudo port -f uninstall inactive >> sudo port uninstall leaves >> > What I usually do, is: > > sudo port selfupdate > sudo port -u upgrade outdated > > I read quite recently in the port documentation (man port) about the > usage of that "-u" option, which does exactly what you want, that is > removing inactive ports. > > I'm not an expert; I just read every now and than chunk of the manual, > so any comment from people with more knowelge/experience is wellcome, > even just a confirmation. > -- > Mick > smime.p7s Description: S/MIME cryptographic signature
Re: ffmpeg unexpectedly uninstalled
On Tue, Jan 04, 2022 at 08:56:43AM +0700, Michael Newman via macports-users wrote: > I'm using the -f option because I copied it from some recommendation I read > somewhere. I'm not smart enough to figure things like this out myself so I > usually rely on what I find by searching. For years I just ran: > > sudo port selfupdate > sudo port upgrade outdated > > But then I read somewhere that to remove unneeded junk I should also run: > > sudo port -f clean --all all > sudo port -f uninstall inactive > sudo port uninstall leaves > What I usually do, is: sudo port selfupdate sudo port -u upgrade outdated I read quite recently in the port documentation (man port) about the usage of that "-u" option, which does exactly what you want, that is removing inactive ports. I'm not an expert; I just read every now and than chunk of the manual, so any comment from people with more knowelge/experience is wellcome, even just a confirmation. -- Mick
Re: ffmpeg unexpectedly uninstalled
I don’t know whether it’s as comprehensive, but sudo port reclaim does a pretty good job of cleaning up. I used to get prompted to run reclaim every now and again. p — Peter West p...@ehealth.id.au “Behold, this child is appointed for the fall and rising of many in Israel, and for a sign that is opposed (and a sword will pierce through your own soul also), so that thoughts from many hearts may be revealed.” > On 4 Jan 2022, at 11:56 am, Michael Newman via macports-users > wrote: > > I'm using the -f option because I copied it from some recommendation I read > somewhere. I'm not smart enough to figure things like this out myself so I > usually rely on what I find by searching. For years I just ran: > > sudo port selfupdate > sudo port upgrade outdated > > But then I read somewhere that to remove unneeded junk I should also run: > > sudo port -f clean --all all > sudo port -f uninstall inactive > sudo port uninstall leaves > > I guess I found out that was wrong. What should I run when I do my periodic > selfupdate? > > And, yes, I'm sure there was not another version of ffmpeg installed. I have > a shell script that runs daily which uses ffmpeg. When I ran the script after > updating macports there was an error message about there being no > /opt/local/bin/ffmpeg. After I installed ffmpeg the script ran OK. > >> On Jan 4, 2022, at 08:05, Chris Jones wrote: >> >> >> >>> On 3 Jan 2022, at 11:54 pm, Michael Newman via macports-users >>> wrote: >>> >>> When I periodically update MacPorts I also run: >>> >>> sudo port -f uninstall inactive >> >> Why are you using the -f option here. That could force something to happen >> that might not be a good idea. Generally speaking you should not use it as a >> matter of course, and only when you really need to, for some specific reason. >> >>> >>> This seemed to work fine until last month when ffmpeg was uninstalled. I >>> reinstalled and forgot about it. >>> >>> But, it happened again yesterday: >>> >>> ---> Deactivating ffmpeg @4.4.1_1+gpl2 >>> ---> Cleaning ffmpeg >>> ---> Uninstalling ffmpeg @4.4.1_1+gpl2 >>> ---> Cleaning ffmpeg >>> >>> So, I reinstalled and tried: >>> >>> MrMuscle:~ mnewman$ sudo port -f uninstall inactive >>> Password: >>> Error: No ports matched the given expression >>> >>> I checked the "requested" ports here from a file I created for the Big Sur >>> migration: >>> >>> MrMuscle:~ mnewman$ ls -la /Users/mnewman/Desktop/requested.txt >>> -rwxrwxrwx@ 1 mnewman staff 359 Jun 8 2021 >>> /Users/mnewman/Desktop/requested.txt* >>> MrMuscle:~ mnewman$ grep ffmpeg /Users/mnewman/Desktop/requested.txt >>> ffmpeg >>> >>> So, ffmpeg is definitely a requested port. >>> >>> I'm baffled. What's going on here? >> >> Are you sure you don’t still have a version of ffmpeg installed ? The above >> only temoved inactive ports, it did not uninstall any active ports. >> >>> >>> Mike Newman >>> Korat, Thailand >>> >
Re: ffmpeg unexpectedly uninstalled
I'm using the -f option because I copied it from some recommendation I read somewhere. I'm not smart enough to figure things like this out myself so I usually rely on what I find by searching. For years I just ran: sudo port selfupdate sudo port upgrade outdated But then I read somewhere that to remove unneeded junk I should also run: sudo port -f clean --all all sudo port -f uninstall inactive sudo port uninstall leaves I guess I found out that was wrong. What should I run when I do my periodic selfupdate? And, yes, I'm sure there was not another version of ffmpeg installed. I have a shell script that runs daily which uses ffmpeg. When I ran the script after updating macports there was an error message about there being no /opt/local/bin/ffmpeg. After I installed ffmpeg the script ran OK. > On Jan 4, 2022, at 08:05, Chris Jones wrote: > > > >> On 3 Jan 2022, at 11:54 pm, Michael Newman via macports-users >> wrote: >> >> When I periodically update MacPorts I also run: >> >> sudo port -f uninstall inactive > > Why are you using the -f option here. That could force something to happen > that might not be a good idea. Generally speaking you should not use it as a > matter of course, and only when you really need to, for some specific reason. > >> >> This seemed to work fine until last month when ffmpeg was uninstalled. I >> reinstalled and forgot about it. >> >> But, it happened again yesterday: >> >> ---> Deactivating ffmpeg @4.4.1_1+gpl2 >> ---> Cleaning ffmpeg >> ---> Uninstalling ffmpeg @4.4.1_1+gpl2 >> ---> Cleaning ffmpeg >> >> So, I reinstalled and tried: >> >> MrMuscle:~ mnewman$ sudo port -f uninstall inactive >> Password: >> Error: No ports matched the given expression >> >> I checked the "requested" ports here from a file I created for the Big Sur >> migration: >> >> MrMuscle:~ mnewman$ ls -la /Users/mnewman/Desktop/requested.txt >> -rwxrwxrwx@ 1 mnewman staff 359 Jun 8 2021 >> /Users/mnewman/Desktop/requested.txt* >> MrMuscle:~ mnewman$ grep ffmpeg /Users/mnewman/Desktop/requested.txt >> ffmpeg >> >> So, ffmpeg is definitely a requested port. >> >> I'm baffled. What's going on here? > > Are you sure you don’t still have a version of ffmpeg installed ? The above > only temoved inactive ports, it did not uninstall any active ports. > >> >> Mike Newman >> Korat, Thailand >>
Re: ffmpeg unexpectedly uninstalled
> On 3 Jan 2022, at 11:54 pm, Michael Newman via macports-users > wrote: > > When I periodically update MacPorts I also run: > > sudo port -f uninstall inactive Why are you using the -f option here. That could force something to happen that might not be a good idea. Generally speaking you should not use it as a matter of course, and only when you really need to, for some specific reason. > > This seemed to work fine until last month when ffmpeg was uninstalled. I > reinstalled and forgot about it. > > But, it happened again yesterday: > > ---> Deactivating ffmpeg @4.4.1_1+gpl2 > ---> Cleaning ffmpeg > ---> Uninstalling ffmpeg @4.4.1_1+gpl2 > ---> Cleaning ffmpeg > > So, I reinstalled and tried: > > MrMuscle:~ mnewman$ sudo port -f uninstall inactive > Password: > Error: No ports matched the given expression > > I checked the "requested" ports here from a file I created for the Big Sur > migration: > > MrMuscle:~ mnewman$ ls -la /Users/mnewman/Desktop/requested.txt > -rwxrwxrwx@ 1 mnewman staff 359 Jun 8 2021 > /Users/mnewman/Desktop/requested.txt* > MrMuscle:~ mnewman$ grep ffmpeg /Users/mnewman/Desktop/requested.txt > ffmpeg > > So, ffmpeg is definitely a requested port. > > I'm baffled. What's going on here? Are you sure you don’t still have a version of ffmpeg installed ? The above only temoved inactive ports, it did not uninstall any active ports. > > Mike Newman > Korat, Thailand >
ffmpeg unexpectedly uninstalled
When I periodically update MacPorts I also run: sudo port -f uninstall inactive This seemed to work fine until last month when ffmpeg was uninstalled. I reinstalled and forgot about it. But, it happened again yesterday: ---> Deactivating ffmpeg @4.4.1_1+gpl2 ---> Cleaning ffmpeg ---> Uninstalling ffmpeg @4.4.1_1+gpl2 ---> Cleaning ffmpeg So, I reinstalled and tried: MrMuscle:~ mnewman$ sudo port -f uninstall inactive Password: Error: No ports matched the given expression I checked the "requested" ports here from a file I created for the Big Sur migration: MrMuscle:~ mnewman$ ls -la /Users/mnewman/Desktop/requested.txt -rwxrwxrwx@ 1 mnewman staff 359 Jun 8 2021 /Users/mnewman/Desktop/requested.txt* MrMuscle:~ mnewman$ grep ffmpeg /Users/mnewman/Desktop/requested.txt ffmpeg So, ffmpeg is definitely a requested port. I'm baffled. What's going on here? Mike Newman Korat, Thailand