The present paper proposes a control scheme for position and attitude tracking of a spacecraft in order to inspect a malfunctioning satellite by maneuvering around the satellite. The proposed method is a nonlinear controller based on the exact-linearization techniques. The exact-linearization method is powerful for controlling nonlinear systems such as the position and attitude control control problem treated in the present paper, because each state variable of the linearized system can be controlled independently. After nonlinear systems are exactly linearized, any kind of control method can be applied to control the systems. The Linear Quadratic Regulator (LQR) is one example of such methods that can be used for controlling the exact-linearized systems. However from the real energy point of view, the exact-linearization method combined with LQR is not optimal, because the performance index is not a function of real energy, and is optimized with respect to the exact-linearized state variables, which are not equal to the real state variables. In the present study, considering the rotational motion of a target satellite, position of the chaser satellite relative to the target and the period of rotational motion of the target satellite, the energy consumption until achieving fly-around motion based on the exact-linearization is minimized. The effectiveness of the proposed method is verified, in comparison with the LQR control or an adaptive sliding-mode control on the exact-linearized system, through numerical simulations.