The pg command is missing in LM 19!?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bmillham

The pg command is missing in LM 19!?

Post by bmillham »

I upgraded one system and did a new install on another, and the pg command is missing! I know I can use more, but I've been using pg for so long... :-(

I tried sudo apt install pg, but no go there. Any ideas how to get pg back?

Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: The pg command is missing in LM 19!?

Post by smurphos »

It's gone - it was part of the utils-linux package - dropped a few versions ago

From https://launchpad.net/ubuntu/+source/ut ... 2-2ubuntu1
util-linux (2.29.2-2) unstable; urgency=medium

"The big post-release cleanup."

[ Andreas Henriksson ]
* Add DEP12 upstream metadata (Closes: #852731)
* Revert "Add configure flag to make libmount skip /etc/mtab"
* Drop explicit --disable-silent-rules configure flag
* Stop shipping the deprecated 'pg' utility
* Revert "Explicitly (re)enable deprecated pg utility"
* Stop shipping deprecated 'tunelp' utility
* Stop shipping the deprecated 'line' utility
* Drop explicitly passing CC for cross-building
* Use configure flags to disable utils shipped by bsdmainutils
* Revert "Attempt to work around debootstrap problems for hwclock.sh"
* Drop no longer needed lintian overrides for dropped workaround
* Drop obsolete fdisk reclaim on PPC
* Revert "Rename libuuid user to uuidd in libuuidd1 postinst as well"
* Revert "libuuid1: add passwd dependency for user migration"
* Drop obsolete uuid-runtime user/group migration code
* Remove 'pg' from being a pager alternative
* Stop shipping deprecated tailf utility
* Mention tailf removal in util-linux.NEWS
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
bmillham

Re: The pg command is missing in LM 19!?

Post by bmillham »

Thanks for the info. And that's just strange. I never knew that pg could be a security issue. I guess I'll have to re-teach my fingers to type more (and as an aside, when I worked for Bell Labs in my past, more was the normal Unix command. pg came later)

Is there something other than more that's similar to pg?
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: The pg command is missing in LM 19!?

Post by jimallyn »

I had never heard of pg before. more is still available, as is the improved version, less.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
User avatar
karlchen
Level 23
Level 23
Posts: 18227
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: The pg command is missing in LM 19!?

Post by karlchen »

The command pg is a very old command. Older than Linux Mint and older even than Ubuntu. First time came across it on something called Microsoft Xenix and SCO Unix during the last decade of the previous century. :wink:
But pg managed to survive well hidden among all the other executables located in /usr/bin and is still present in Linux Mint 18.x e.g.

Code: Select all

$ inxi -Sx
System:    Host: unimatrix0 Kernel: 4.4.0-130-generic i686 bits: 32 compiler: gcc v: 5.4.0 Desktop: Xfce 4.12.3 
           tk: Gtk 2.24.28 Distro: Linux Mint 18.1 Serena base: Ubuntu 16.04 LTS Xenial 
$ which pg
/usr/bin/pg

Code: Select all

$ pg --help
Usage:
 pg [options] [+line] [+/pattern/] [files]
Browse pagewise through text files.
[...]
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: The pg command is missing in LM 19!?

Post by jimallyn »

karlchen wrote: Mon Jul 16, 2018 2:04 pm But pg managed to survive well hidden among all the other executables located in /usr/bin and is still present in Linux Mint 18.x e.g.
It's in 17.x also. But not in 19.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
mydoll
Level 1
Level 1
Posts: 1
Joined: Mon Apr 13, 2020 3:03 am

Re: The pg command is missing in LM 19!?

Post by mydoll »

Unfortunately there can be a lot of legacy scripts around that depended upon 'pg' being available. For compatibility, is the source around to rebuild it?
Locked

Return to “Software & Applications”