[SOLVED] Is mokutil preinstalled in mint 19?

Questions about applications and software
Forum rules
Before you post please read how to get help
User avatar
overkill22
Level 4
Level 4
Posts: 398
Joined: Fri Jan 16, 2015 6:09 am
Contact:

[SOLVED] Is mokutil preinstalled in mint 19?

Post by overkill22 » Thu Nov 01, 2018 10:16 pm

I'd like to know if the package 'mokutil' is installed by default in linux mint 19 or it is an additional package.
I was not able to find it in the list of packages installed by defaul in mint 19 here >>> http://packages.linuxmint.com/index.php

Thanks
Last edited by overkill22 on Thu Nov 01, 2018 11:29 pm, edited 1 time in total.

ajgringo619
Level 6
Level 6
Posts: 1212
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: Is mokutil preinstalled in mint 19?

Post by ajgringo619 » Thu Nov 01, 2018 10:47 pm

Looks like it's preinstalled:

Code: Select all

apt search mokutil
i   mokutil                                            - tools for manipulating machine owner keys                   
p   mokutil:i386                                       - tools for manipulating machine owner keys
Mint 19.1 Cinnamon
kernel 5.0.0-20-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (430.26)
Image

User avatar
overkill22
Level 4
Level 4
Posts: 398
Joined: Fri Jan 16, 2015 6:09 am
Contact:

Re: Is mokutil preinstalled in mint 19?

Post by overkill22 » Thu Nov 01, 2018 11:00 pm

ajgringo619 wrote:
Thu Nov 01, 2018 10:47 pm
Looks like it's preinstalled:

Code: Select all

apt search mokutil
i   mokutil                                            - tools for manipulating machine owner keys                   
p   mokutil:i386                                       - tools for manipulating machine owner keys
Thanks. How can I check this if I don't have a fresh installed machine?

ajgringo619
Level 6
Level 6
Posts: 1212
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: Is mokutil preinstalled in mint 19?

Post by ajgringo619 » Thu Nov 01, 2018 11:05 pm

overkill22 wrote:
Thu Nov 01, 2018 11:00 pm
ajgringo619 wrote:
Thu Nov 01, 2018 10:47 pm
Looks like it's preinstalled:

Code: Select all

apt search mokutil
i   mokutil                                            - tools for manipulating machine owner keys                   
p   mokutil:i386                                       - tools for manipulating machine owner keys
Thanks. How can I check this if I don't have a fresh installed machine?
Good question. I've never had a need to check Mint's software repos. I guess you could check Ubuntu's - https://packages.ubuntu.com/ (choose bionic for the system name).
Mint 19.1 Cinnamon
kernel 5.0.0-20-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (430.26)
Image

User avatar
thx-1138
Level 7
Level 7
Posts: 1803
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Is mokutil preinstalled in mint 19?

Post by thx-1138 » Thu Nov 01, 2018 11:30 pm

...an easy way is by checking the filesystem.manifest file for the version of your choice...

User avatar
smurphos
Level 11
Level 11
Posts: 3727
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by smurphos » Fri Nov 02, 2018 12:34 am

It's not a default package in 19. To check what was present at initial install you can review the contents of /var/log/installer/initial-status.gz

This command will extract the contents to your home, parse the file to produce a package list and display that list in your text-editor.

Code: Select all

cp /var/log/installer/initial-status.gz ~/ && gunzip ~/initial-status.gz && cat initial-status | grep "Package:" > default-packages.txt && xed default-packages.txt
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

ajgringo619
Level 6
Level 6
Posts: 1212
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by ajgringo619 » Fri Nov 02, 2018 12:40 am

Thanks for that, smurphos. I checked its dependencies and none of them looked like something I might have added after the fact.
Mint 19.1 Cinnamon
kernel 5.0.0-20-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (430.26)
Image

User avatar
smurphos
Level 11
Level 11
Posts: 3727
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by smurphos » Fri Nov 02, 2018 12:48 am

Interestingly it is in the manifest and is used by the installer - looking back at apt logs it gets purged from the installed OS as part of installation.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
overkill22
Level 4
Level 4
Posts: 398
Joined: Fri Jan 16, 2015 6:09 am
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by overkill22 » Fri Nov 02, 2018 12:56 am

smurphos wrote:
Fri Nov 02, 2018 12:48 am
Interestingly it is in the manifest and is used by the installer - looking back at apt logs it gets purged from the installed OS as part of installation.
It took my attention today because I had an update pending for this package and I found it weird.

User avatar
overkill22
Level 4
Level 4
Posts: 398
Joined: Fri Jan 16, 2015 6:09 am
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by overkill22 » Fri Nov 02, 2018 12:57 am

smurphos wrote:
Fri Nov 02, 2018 12:34 am
It's not a default package in 19. To check what was present at initial install you can review the contents of /var/log/installer/initial-status.gz

This command will extract the contents to your home, parse the file to produce a package list and display that list in your text-editor.

Code: Select all

cp /var/log/installer/initial-status.gz ~/ && gunzip ~/initial-status.gz && cat initial-status | grep "Package:" > default-packages.txt && xed default-packages.txt
I don't have that file

User avatar
smurphos
Level 11
Level 11
Posts: 3727
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by smurphos » Fri Nov 02, 2018 1:05 am

overkill22 wrote:
Fri Nov 02, 2018 12:57 am
I don't have that file
Ever run bleachbit?
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
smurphos
Level 11
Level 11
Posts: 3727
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by smurphos » Fri Nov 02, 2018 1:12 am

I think mokutil might be retained and needed on systems with UEFI secure boot.... not sure. It's a dependency of shim mentioned in the linked article. My machine is legacy.

https://wiki.ubuntu.com/UEFI/SecureBoot
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
thx-1138
Level 7
Level 7
Posts: 1803
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by thx-1138 » Fri Nov 02, 2018 12:55 pm

...that's very interesting actually:
i was under the impression that only packages listed in filesystem.manifest-remove get purged after installation?
Or do i have the wrong impression on that? mokutil is not listed in any 19.x filesystem.manifest-remove version... :|
Why that discrepancy? The plot thickens...

ajgringo619
Level 6
Level 6
Posts: 1212
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by ajgringo619 » Fri Nov 02, 2018 1:09 pm

smurphos wrote:
Fri Nov 02, 2018 1:12 am
I think mokutil might be retained and needed on systems with UEFI secure boot.... not sure. It's a dependency of shim mentioned in the linked article. My machine is legacy.

https://wiki.ubuntu.com/UEFI/SecureBoot
Main host (Mint 19 XFCE) w/UEFI (no SecureBoot): mokutil installed
Xubuntu 18.10 VM: no mokutil installed
LMDE3 VM: mokutil installed

Weird, huh?
Mint 19.1 Cinnamon
kernel 5.0.0-20-generic
AMD FX-8350 Eight-Core w/16 GB RAM
Nvidia GeForce 960 w/2GB RAM (430.26)
Image

gm10
Level 17
Level 17
Posts: 7439
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by gm10 » Fri Nov 02, 2018 1:37 pm

thx-1138 wrote:
Fri Nov 02, 2018 12:55 pm
...that's very interesting actually:
i was under the impression that only packages listed in filesystem.manifest-remove get purged after installation?
Or do i have the wrong impression on that? mokutil is not listed in any 19.x filesystem.manifest-remove version... :|
Why that discrepancy? The plot thickens...
No, the installer handles a few packages directly no matter the manifests. mokutil gets removed for non-EFI systems. Relevant code references:
https://github.com/linuxmint/ubiquity/b ... ll.py#L272
https://github.com/linuxmint/ubiquity/b ... l.py#L1407
smurphos wrote:
Fri Nov 02, 2018 12:34 am
This command will extract the contents to your home, parse the file to produce a package list and display that list in your text-editor.

Code: Select all

cp /var/log/installer/initial-status.gz ~/ && gunzip ~/initial-status.gz && cat initial-status | grep "Package:" > default-packages.txt && xed default-packages.txt
You know I love long scripts but may I suggest:

Code: Select all

zgrep mokutil /var/log/installer/initial-status.gz
Or zmore/zless if you just want to browse through it. Makes handling .gz files much easier. ;)

User avatar
thx-1138
Level 7
Level 7
Posts: 1803
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by thx-1138 » Fri Nov 02, 2018 1:45 pm

gm10 wrote:
Fri Nov 02, 2018 1:37 pm
No, the installer handles a few packages directly no matter the manifests. mokutil gets removed for non-EFI systems. Relevant code references:
https://github.com/linuxmint/ubiquity/b ... ll.py#L272
https://github.com/linuxmint/ubiquity/b ... l.py#L1407
Thank you gm10 :)

User avatar
smurphos
Level 11
Level 11
Posts: 3727
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by smurphos » Fri Nov 02, 2018 1:55 pm

gm10 wrote:
Fri Nov 02, 2018 1:37 pm

Code: Select all

zgrep mokutil /var/log/installer/initial-status.gz
Or zmore/zless if you just want to browse through it. Makes handling .gz files much easier. ;)
I was waiting for you to come up with a nice extraction script-let to remove the Package: from the grep output and sort the packages in alphabetical order :wink: That was way beyond my overtired brain this morning.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

gm10
Level 17
Level 17
Posts: 7439
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by gm10 » Fri Nov 02, 2018 2:01 pm

smurphos wrote:
Fri Nov 02, 2018 1:55 pm
gm10 wrote:
Fri Nov 02, 2018 1:37 pm

Code: Select all

zgrep mokutil /var/log/installer/initial-status.gz
Or zmore/zless if you just want to browse through it. Makes handling .gz files much easier. ;)
I was waiting for you to come up with a nice extraction script-let to remove the Package: from the grep output and sort the packages in alphabetical order :wink: That was way beyond my overtired brain this morning.
In that case how could I resist (you must be very tired, I know you could do this in your sleep - pun intended):

Code: Select all

zgrep '^Package:' /var/log/installer/initial-status.gz|sed 's/.* //'|sort

User avatar
smurphos
Level 11
Level 11
Posts: 3727
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by smurphos » Fri Nov 02, 2018 2:19 pm

Nice.... :D
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

aes2011
Level 5
Level 5
Posts: 506
Joined: Wed Jul 06, 2011 10:39 pm

Re: [SOLVED] Is mokutil preinstalled in mint 19?

Post by aes2011 » Sat Nov 03, 2018 8:33 am

gm10 wrote:
Fri Nov 02, 2018 2:01 pm

Code: Select all

zgrep '^Package:' /var/log/installer/initial-status.gz|sed 's/.* //'|sort
Very nice!

Post Reply

Return to “Software & Applications”