Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #274969

Re: Package name question

From Alain D D Williams <addw@phcomp.co.uk>
Newsgroups linux.debian.user
Subject Re: Package name question
Date 2024-11-28 20:10 +0100
Message-ID <JNS3L-chtG-1@gated-at.bofh.it> (permalink)
References <JNRU6-chaE-5@gated-at.bofh.it>
Organization Parliament Hill Computers Ltd

Show all headers | View raw


On Fri, Nov 29, 2024 at 02:52:29AM +0800, Bitfox wrote:
> Hello
> 
> After I installed mysql 8.0 via apt install mysql-server, I tried to restart
> mysql server.
> 
> I issued the following commands,
> 
> systemctl restart mysql-server
> systemctl restart mysqld
> 
> They got failed, no package was found.
> 
> Then I run systemctl restart mysql it successed finally.
> 
> My question is how I can know the installed package name rather than by
> guessing?

$ dpkg -l | grep -i mysql

But that gives you the Debian package name which is not what you want. You need
to know the systemd unit name. This will let you find it, but you need to have
spotted that you are running MariaDB in the output above.

$ systemctl | grep -i maria

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  https://www.phcomp.co.uk/
Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html
#include <std_disclaimer.h>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Package name question Bitfox <hi@bitfox.ddns.net> - 2024-11-28 20:00 +0100
  Re: Package name question Alain D D Williams <addw@phcomp.co.uk> - 2024-11-28 20:10 +0100
  Re: Package name question Bitfox <hi@bitfox.ddns.net> - 2024-11-29 00:10 +0100

csiph-web