help with installing via terminal

i know this is prob a stupid question, but how do you install stuff via terminal with suse 12.2? what im trying to do is update, upgrade and install pure-ftpd via terminal

so i typed this: apt-get update
and got this:
If ‘apt-get’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf apt-get
so i tryed: cnf apt-get install pure-ftpd-common pure-ftpd
and got:
apt-get: command not found

so im at a loss on what exactly i need to type in. im in root because i first tryed everything with sudo apt-get xxx

thanks

su -
zypper up

apt-get is debian

On Fri, 01 Feb 2013 16:06:01 +0000, Sweettea wrote:

> i know this is prob a stupid question, but how do you install stuff via
> terminal with suse 12.2? what im trying to do is update, upgrade and
> install pure-ftpd via terminal
>
> so i typed this: apt-get update and got this:
> If ‘apt-get’ is not a typo you can use command-not-found to lookup the
> package that contains it, like this:
> cnf apt-get so i tryed: cnf apt-get install pure-ftpd-common pure-ftpd
> and got:
> apt-get: command not found
>
>
> so im at a loss on what exactly i need to type in. im in root because i
> first tryed everything with sudo apt-get xxx
>
> thanks

apt-get is a Debian/Ubuntu tool. openSUSE is not a Debian derivative.

Try zypper instead.

zypper --help or man zypper for info.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

thanks for the reply

what will su zypper up do? and do i need to type it as:

su zypper up install pure-ftpd-common pure-ftpd?

On 02/01/2013 05:16 PM, caf4926 wrote:
> apt-get is debian

for more useful info when transitioning from Debian or one of their
derivatives to openSUSE see:

http://tinyurl.com/ubuntu-to-openSUSE
http://tinyurl.com/Ubuntu-Differences

and, when/if you seek help via (say) google, be VERY careful because
much of the advice out there on the net is for other distributions or
far to old to be useful in openSUSE…i find it best to use google’s
“site specifier” to first search for answers within this forum, as
described in these:

http://tinyurl.com/site-specifier


dd
openSUSE®, the “German Engineered Automobile” of operating systems!

Why not open Software Management and search for the packages you want, then check them for install

zypper up (is for update)

zypper in <packagename> (is to install) Eg: zypper in k3b (would install k3b)

man zypper (is for reading command documentation ) :slight_smile:

This is what you will probably use most frequently.
zypper # to print the list of available global options and commands
zypper help search # to print help for the search command
zypper lp # to see what patch updates are needed
zypper patch # to apply the needed patches
zypper se sqlite # to search for sqlite
zypper rm sqlite2 # to remove sqlite2
zypper in sqlite3 # to install sqlite3
zypper in yast* # to install all packages matching ‘yast*’
zypper up # to update all installed packages with newer versions, where possible

source:- SDB:Zypper usage - openSUSE Wiki

thanks for all the replies.

this is what I got after using zypper

zypper in pure-ftpd-common pure-ftpd
Failed to mount cd:///?devices=/dev/disk/by-id/ata-_NEC_DVD+RW_ND-1100A,/dev/sr0 on /var/adm/mount/AP_0xRNS3t5: Mounting media failed (mount: no medium found on /dev/sr0)

Please insert medium ] #1 and type ‘y’ to continue or ‘n’ to cancel the operation. [yes/no] (no):

On 2013-02-01 17:26, Sweettea wrote:
>
> thanks for the reply
>
> what will su zypper up do? and do i need to type it as:
>
> su zypper up install pure-ftpd-common pure-ftpd?

It has help and a manual. You might use it with sudo, or use “su -”
first to become root in that terminal.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

You still have the cd/dvd set as an active repo. you need to siable it either in Yast or there is a zypper command to disable repos

Either put the install DVD in the drive or disable the DVD source in Yast > Software Repositories

Note if you want to do all by the command line just type yast at the prompt this will run a curses version of yast

ok so after fixing the repositories, i retried the install, and it said it was already installed hangs head in shame but i cant find it. ive done searches, and looked in many folders…i cant find it. would it give me the already installed message if it actually wasn’t? wouldn’t think it would, but im at a loss as to where it is.

What are you trying to do exactly
AFAIK it has no UI, configure rather like SSH

If it is already installed, then just check to see where it is located.

One way to see where its files are is to type:


rpm -qil pure-ftpd

and you will see an asortment of binary files, with something like:


/usr/bin/pure-pw
/usr/bin/pure-pwconvert
/usr/bin/pure-statsdecode
/usr/sbin/pure-authd
/usr/sbin/pure-config-args
/usr/sbin/pure-config.pl
/usr/sbin/pure-ftpd
/usr/sbin/pure-ftpwho
/usr/sbin/pure-mrtginfo
/usr/sbin/pure-quotacheck
/usr/sbin/pure-uploadscript
/usr/sbin/rcpure-ftpd

LIkely one of those is the program you are looking to run. My guess it is “pure-ftpd”. :slight_smile:

On 02/02/2013 04:06 PM, Sweettea wrote:
> but im at a loss as to where it is.

as far as i know most (if not all) FTP daemons are command line
programs…that is, they have no GUI icon to click…they only run in
the background waiting for someone to come in (through networking) and
knock on their door…

if you start YaST, and go to the Network Devices (on the left) section
and find and then start “FTP Server - Module for FTP Daemon” you can set
up your FTPd so that it starts up when your computer starts and all
kinds of other stuff…there is a “Help” button on every page…

HMMMMMM…but, now looking at your first post again, it looks like you
want to “update” your software…so, open YaST and run Online
Update…hmmmmm, you do not need FTP to do that…do you want to run
FTP so people can ftp into your machine and pick up or drop off files ??


dd
http://tinyurl.com/DD-Caveat

On Sat, 02 Feb 2013 15:06:02 +0000, Sweettea wrote:

> ok so after fixing the repositories, i retried the install, and it said
> it was already installed hangs head in shame but i cant find it. ive
> done searches, and looked in many folders…i cant find it. would it
> give me the already installed message if it actually wasn’t? wouldn’t
> think it would, but im at a loss as to where it is.

rpm -qa | grep ftp

That’ll tell you which ftp packages are installed. Find the package for
PureFTP that way and execute:

rpm -ql [packagename]

Replacing “[packagename]” with the name of the package.

As others said, FTP daemons are not GUI applications. Once installed,
you’ll need to configure it, and there are a number of tutorials around
the 'net on how to do that. :slight_smile:

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C