pathfix
(via the setpath
command) but on Ubuntu the path you get is now a lot simpler.
The minimum you'll get is just /usr/bin
. If you have a $HOME/bin
directory, that'll get added too.
If you want anything else in your path - for example /usr/sbin
- then add it using a setpath
command in your ~/.benv file like this:
setpath /usr/sbinYou may find several other directories in your PATH - they're being added by bits of the shell environment we haven't yet tracked down. If you spot anything wrong there, let the Ubuntu team know please.
SL | Ubuntu |
---|---|
nsu |
ksu |
ksu |
ksu |
nsu
on Ubuntu! This is deliberate. Get used to ksu
. To become root on Ubuntu you can simply type ksu
but there are other forms too - here's a reminder:
ksu or ksu root -n uun/root |
Get superuser privilege |
ksu . -n uun/root |
Get access to admin stuff |
sudo
component to give yourself sudo
access, if you wanted.
SL | Ubuntu |
---|---|
/var/lcfg/log |
/var/log/lcfg |
/var/lcfg/tmp |
/var/tmp/lcfg |
/var/lcfg/conf |
/var/lib/lcfg/conf |
/usr/lib/lcfg |
/usr/share/lcfg |
/var/log/lcfg/
and /var/lib/lcfg
.
ksu
to be able to read the logs; sorry.
SL | Ubuntu | |
---|---|---|
whatever.x86_64.rpm | whatever_amd64.deb | Binary |
whatever.noarch.rpm | whatever_all.deb | Architecture-independent. |
whatever.src.rpm | whatever.dsc | Source |
noarch
rather than all
for package specifications in LCFG profiles. This is translated back on the client side.
SL | Ubuntu | Does this |
---|---|---|
rpm -qa | apt list --installed | List the installed packages. |
rpm -qi foo | apt show foo | Tell me about package foo. |
rpm -ql foo | dpkg -L foo | List the files installed by package foo. |
rpm -qlp foo.rpm | dpkg -c foo.deb | List the files in this package file. |
rpm -qf foo.txt | dpkg -S foo.txt | What package installed that file? |
rpm -q --requires foo rpm -qR foo |
apt depends foo | What does package foo depend on? Note that while rpm dependencies can be package names or capabilities, apt dependencies are always package names. |
rpm -q --whatrequires foo | apt rdepends foo | Which packages depend on foo? |
om updaterpms run -- -t | om apt run -- -t | List what changes a "run" would make. |
whererpms foo (in cos utils) |
apt policy foo then look at the last word in the URL ("ubuntu", "inf", "lcfg" etc.) |
Which repository bucket is this package in? |
whererpms "foo*" (in cos utils) |
apt list "foo*" apt search "^foo.*" ('apt search' uses regexes) |
Locate available packages using a wildcarded name |
rpm -i foo.rpm | dpkg -i foo.deb | Install this package file on this machine. |
rpm -U foo.rpm | Install this package file on this machine, updating any existing installation of the foo package. | |
rpm -e foo | dpkg -r foo | Remove package foo from this machine. |
SL | Ubuntu | Use |
---|---|---|
rpm | dpkg | Manipulate a package - install, remove, query, etc. |
yum | apt | Explore our package repositories, and maybe install packages you find there. |
updaterpms | apteryx | Controls our machine's (LCFG-configured) package set. |
yummy | soy | Construct package lists automatically. |
aptly | Manage package repositories - mirror remote repositories locally and configure local repositories. | |
pkgsubmit | dput | Submit a package you've built. See below for the syntax. |
SL | Ubuntu | Comments |
---|---|---|
name-version-release | name=version-release | |
name=version | If there's no release, you can miss it out. | |
name=epoch:version-release | If an epoch has been specified, it must be there. |
-*
).
lcfg-reltool
and pkgforge
- see below.
SL | Ubuntu |
---|---|
To submit to Package Forge: pkgforge submit -B lcfg /path/to/source/package.src.rpm |
pkgforge submit -B lcfg -p ubuntu /path/to/source/package.dsc |
To submit a package you've built yourself: pkgsubmit -B world /path/to/file.x86_64.rpm |
dput inf-focal-world /path/to/file_amd64.changes |
dput
knows the buckets as inf-focal-lcfg
, inf-focal-world
, inf-focal-inf
, inf-focal-uoe
and inf-focal-devel
.
SL | Ubuntu | Comments |
---|---|---|
lcfg-reltool srpm |
lcfg-reltool pack or lcfg-reltool devpack |
Make a source package (works on SL7 as well as Ubuntu). |
lcfg-reltool rpm |
lcfg-reltool deb or more fully lcfg-reltool debianpkg |
Make a package from the files in the repository. |
lcfg-reltool devrpm |
lcfg-reltool devdeb or more fully lcfg-reltool devdebianpkg |
Make a package from the files in your working copy. And note that on Ubuntu, dev packages can only be submitted to the devel bucket. |
lcfg-reltool gendeb |
Generate debian package metadata from lcfg.yml . (Probably only needed once per package.) |
#include <dice/os/ubuntu/focal.h>PXE should work pretty much as normal. The installation is largely automatic, but you'll need to answer a couple of questions. Once it's finished, reboot the machine one extra time or you may not be able to login. To reboot a VM:
kvmtool shutdown --name myvm
kvmtool info --name myvm
until it says that the VM isn't running any more
kvmtool start --name myvm